Skip to content

Commit 0b3689e

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

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
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),
4141
env['BUILDLIB_PATH'],
4242
])
4343
env['LDFLAGS'] += ' -L{}'.format(self.ctx.python_recipe.link_root(arch.arch))

pythonforandroid/recipes/libtorrent/__init__.py

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

133133
python_libtorrent = get_lib_from(join(build_dir, 'bindings/python/bin'))
134134
shutil.copyfile(python_libtorrent,
135-
join(self.ctx.get_site_packages_dir(arch.arch), 'libtorrent.so'))
135+
join(self.ctx.get_site_packages_dir(arch), 'libtorrent.so'))
136136

137137
def get_recipe_env(self, arch):
138138
# Use environment from boost recipe, cause we use b2 tool from boost

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),
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)
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), '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),
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))
3030
self.install_python_package(arch)
3131

3232

pythonforandroid/recipes/zope_interface/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def build_arch(self, arch):
1919
# folders (once is installed), that leads into an ImportError.
2020
# Here we intentionally apply a patch to solve that, so, in case that
2121
# this is solved in the future an error will be triggered
22-
zope_install = join(self.ctx.get_site_packages_dir(arch.arch), 'zope')
22+
zope_install = join(self.ctx.get_site_packages_dir(arch), 'zope')
2323
self.apply_patch('fix-init.patch', arch.arch, build_dir=zope_install)
2424

2525
def prebuild_arch(self, arch):

0 commit comments

Comments
 (0)