Skip to content

Commit 819a1e6

Browse files
rambogermn
authored andcommitted
Call cython via the setuptools entrypoint, fixes kivy#2311 (kivy#2312)
* Call cython via the setuptools entrypoint, refs kivy#2311 * Use the python_command way to invoke the cython cli entrypoint
1 parent 75e5740 commit 819a1e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,8 @@ def cythonize_file(self, env, build_dir, filename):
10921092
python_command = sh.Command("python{}".format(
10931093
self.ctx.python_recipe.major_minor_version_string.split(".")[0]
10941094
))
1095-
shprint(python_command, "-m", "Cython.Build.Cythonize",
1095+
shprint(python_command, "-c"
1096+
"import sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());",
10961097
filename, *self.cython_args, _env=cyenv)
10971098

10981099
def cythonize_build(self, env, build_dir="."):

0 commit comments

Comments
 (0)