Skip to content

Commit 231d99f

Browse files
committed
Fix broken recipes with missing arch.arch in get_site_packages_dir
1 parent e3dabdf commit 231d99f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

pythonforandroid/recipes/cffi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_recipe_env(self, arch=None):
3737
# required for libc and libdl
3838
env['LDFLAGS'] += ' -L{}'.format(arch.ndk_lib_dir)
3939
env['PYTHONPATH'] = ':'.join([
40-
self.ctx.get_site_packages_dir(),
40+
self.ctx.get_site_packages_dir(arch.arch),
4141
env['BUILDLIB_PATH'],
4242
])
4343
env['LDFLAGS'] += ' -L{}'.format(self.ctx.python_recipe.link_root(arch.arch))

pythonforandroid/recipes/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_recipe_env(self, arch=None, with_flags_in_cc=True):
132132
# the matplotlib script where to find our numpy without importing it
133133
# (which will fail, because numpy isn't installed in our hostpython)
134134
env['NUMPY_INCLUDES'] = join(
135-
self.ctx.get_site_packages_dir(),
135+
self.ctx.get_site_packages_dir(arch.arch),
136136
'numpy', 'core', 'include',
137137
)
138138

pythonforandroid/recipes/opencv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def build_arch(self, arch):
6161

6262
python_major = self.ctx.python_recipe.version[0]
6363
python_include_root = self.ctx.python_recipe.include_root(arch.arch)
64-
python_site_packages = self.ctx.get_site_packages_dir()
64+
python_site_packages = self.ctx.get_site_packages_dir(arch.arch)
6565
python_link_root = self.ctx.python_recipe.link_root(arch.arch)
6666
python_link_version = self.ctx.python_recipe.link_version
6767
python_library = join(python_link_root,

pythonforandroid/recipes/protobuf_cpp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def install_python_package(self, arch):
124124
# - https://stackoverflow.com/questions/13862562/
125125
# google-protocol-buffers-not-found-when-trying-to-freeze-python-app
126126
open(
127-
join(self.ctx.get_site_packages_dir(), 'google', '__init__.py'),
127+
join(self.ctx.get_site_packages_dir(arch.arch), 'google', '__init__.py'),
128128
'a',
129129
).close()
130130

pythonforandroid/recipes/twisted/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_recipe_env(self, arch):
2929
env = super().get_recipe_env(arch)
3030
# We add BUILDLIB_PATH to PYTHONPATH so twisted can find _io.so
3131
env['PYTHONPATH'] = ':'.join([
32-
self.ctx.get_site_packages_dir(),
32+
self.ctx.get_site_packages_dir(arch.arch),
3333
env['BUILDLIB_PATH'],
3434
])
3535
return env

pythonforandroid/recipes/xeddsa/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def build_arch(self, arch):
2626
)
2727
# the library could be `_crypto_sign.cpython-37m-x86_64-linux-gnu.so`
2828
# or simply `_crypto_sign.so` depending on the platform/distribution
29-
sh.cp('-a', sh.glob('_crypto_sign*.so'), self.ctx.get_site_packages_dir())
29+
sh.cp('-a', sh.glob('_crypto_sign*.so'), self.ctx.get_site_packages_dir(arch.arch))
3030
self.install_python_package(arch)
3131

3232

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy