Skip to content

Commit 769e12b

Browse files
authored
Create __init__.py
Recreate recipe, implement as PyProjectRecipe, update version.
1 parent ceed049 commit 769e12b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from pythonforandroid.recipe import PyProjectRecipe
2+
3+
4+
class CppyRecipe(PyProjectRecipe):
5+
site_packages_name = 'cppy'
6+
version = '1.3.1'
7+
url = 'https://github.com/nucleic/cppy/archive/refs/tags/{version}.zip'
8+
call_hostpython_via_targetpython = False
9+
depends = ['setuptools']
10+
11+
def get_recipe_env(self, arch, **kwargs):
12+
env = super().get_recipe_env(arch, **kwargs)
13+
env["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CPPY"] = self.version
14+
return env
15+
16+
17+
recipe = CppyRecipe()

0 commit comments

Comments
 (0)