Skip to content

Commit

Permalink
Removed PYTHONNOUSERSITE from CythonRecipe env
Browse files Browse the repository at this point in the history
This is necessary for Cython to work when it is itself installed in
the user site packages.
  • Loading branch information
inclement committed Apr 1, 2017
1 parent bb934a7 commit f5335ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pythonforandroid/recipe.py
Expand Up @@ -1039,6 +1039,8 @@ def cythonize_file(self, env, build_dir, filename):
cyenv['PYTHONPATH'] = cyenv['CYTHONPATH']
elif 'PYTHONPATH' in cyenv:
del cyenv['PYTHONPATH']
if 'PYTHONNOUSERSITE' in cyenv:
cyenv.pop('PYTHONNOUSERSITE')
cython = 'cython' if self.ctx.python_recipe.from_crystax else self.ctx.cython
cython_command = sh.Command(cython)
shprint(cython_command, filename, *self.cython_args, _env=cyenv)
Expand Down

0 comments on commit f5335ed

Please sign in to comment.