Skip to content

Commit f5335ed

Browse files
committed
Removed PYTHONNOUSERSITE from CythonRecipe env
This is necessary for Cython to work when it is itself installed in the user site packages.
1 parent bb934a7 commit f5335ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,8 @@ def cythonize_file(self, env, build_dir, filename):
10391039
cyenv['PYTHONPATH'] = cyenv['CYTHONPATH']
10401040
elif 'PYTHONPATH' in cyenv:
10411041
del cyenv['PYTHONPATH']
1042+
if 'PYTHONNOUSERSITE' in cyenv:
1043+
cyenv.pop('PYTHONNOUSERSITE')
10421044
cython = 'cython' if self.ctx.python_recipe.from_crystax else self.ctx.cython
10431045
cython_command = sh.Command(cython)
10441046
shprint(cython_command, filename, *self.cython_args, _env=cyenv)

0 commit comments

Comments
 (0)