File tree 2 files changed +27
-0
lines changed
pythonforandroid/recipes/freetype-py 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
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 ()
Original file line number Diff line number Diff line change
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.")
You can’t perform that action at this time.
0 commit comments