8000 add recipe for freetype-py to not include the prebuilt .so for the wr… · domedave/python-for-android@9423175 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9423175

Browse files
author
domepol
committed
add recipe for freetype-py to not include the prebuilt .so for the wrong architecture
1 parent fd0a544 commit 9423175

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
8+
depends = ['freetype']
9+
10+
patches = ['fall-back-to-distutils.patch']
11+
site_packages_name = 'freetype'
12+
13+
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)
0