Skip to content

Commit 3354e28

Browse files
committed
Changed some crystax checks to check python recipe
1 parent 8f4b996 commit 3354e28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pythonforandroid/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def get_site_packages_dir(self, arch=None):
480480
# AND: This *must* be replaced with something more general in
481481
# order to support multiple python versions and/or multiple
482482
# archs.
483-
if self.ndk_is_crystax:
483+
if self.python_recipe.from_crystax:
484484
return self.get_python_install_dir()
485485
return join(self.get_python_install_dir(),
486486
'lib', 'python2.7', 'site-packages')

pythonforandroid/recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ def build_cython_components(self, arch):
829829

830830
env = self.get_recipe_env(arch)
831831

832-
if self.ctx.ndk_is_crystax:
833-
site_packages_dirs = sh.Command('python3.5')('-c', 'import site; print("\\n".join(site.getsitepackages()))').stdout.split('\n')
832+
if self.ctx.python_recipe.from_crystax:
833+
site_packages_dirs = sh.Command('python{}'.format(self.ctx.python_recipe.version)('-c', 'import site; print("\\n".join(site.getsitepackages()))').stdout.split('\n')
834834
# env['PYTHONPATH'] = '/usr/lib/python3.5/site-packages/:/usr/lib/python3.5'
835835
if 'PYTHONPATH' in env:
836836
env['PYTHONPATH'] = env + ':{}'.format(':'.join(site_packages_dirs))

0 commit comments

Comments
 (0)