Skip to content

Commit 8102b33

Browse files
committed
Turn FreetypePyRecipe into a PyProjectRecipe
I don't think this will require the version hack
1 parent 9286612 commit 8102b33

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
from pythonforandroid.recipe import PythonRecipe
1+
from pythonforandroid.recipe import PyProjectRecipe
22

33

4-
class FreetypePyRecipe(PythonRecipe):
4+
class FreetypePyRecipe(PyProjectRecipe):
55
version = '2.5.1'
66
url = 'https://github.com/rougier/freetype-py/archive/refs/tags/v{version}.tar.gz'
77
depends = ['freetype']
88
site_packages_name = 'freetype'
99

10-
def get_recipe_env(self, arch=None, with_flags_in_cc=True):
11-
env = super().get_recipe_env(arch, with_flags_in_cc)
12-
env["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_freetype"] = self.version
13-
return env
14-
1510

1611
recipe = FreetypePyRecipe()

0 commit comments

Comments
 (0)