Skip to content

Commit f22a46e

Browse files
domedavedomepol
and
domepol
authored
add recipe for freetype-py to not include the prebuilt .so for the wr… (kivy#2558)
* add recipe for freetype-py to not include the prebuilt .so for the wrong architecture Co-authored-by: domepol <dome.pol@yannix.com>
1 parent 2bba951 commit f22a46e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from pythonforandroid.recipe import PythonRecipe
2+
3+
4+
class FreetypePyRecipe(PythonRecipe):
5+
version = '2.2.0'
6+
url = 'https://github.com/rougier/freetype-py/archive/refs/tags/v{version}.tar.gz'
7+
depends = ['freetype']
8+
patches = ['fall-back-to-distutils.patch']
9+
site_packages_name = 'freetype'
10+
11+
12+
recipe = FreetypePyRecipe()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff -ruN freetype-py.orig/setup.py freetype-py/setup.py
2+
--- freetype-py.orig/setup.py 2020-07-09 20:58:51.000000000 +0700
3+
+++ freetype-py/setup.py 2022-03-02 19:28:17.948831134 +0700
4+
@@ -12,7 +12,10 @@
5+
from io import open
6+
from os import path
7+
8+
-from setuptools import setup
9+
+try:
10+
+ from setuptools import setup
11+
+except ImportError:
12+
+ from distutils.core import setup
13+
14+
if os.environ.get("FREETYPEPY_BUNDLE_FT"):
15+
print("# Will build and bundle FreeType.")

0 commit comments

Comments
 (0)