Skip to content

Commit 2a1944f

Browse files
committed
[xeddsa] fixed shared library copying
The copy of the build shared library was not working anymore after the update of python2 build chain. This patch fixes it by using self.ctx.get_site_packages_dir().
1 parent eb939b7 commit 2a1944f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pythonforandroid/recipes/xeddsa/__init__.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ def build_arch(self, arch):
2424
hostpython, 'ref10/build.py',
2525
_env=env
2626
)
27-
python_version = self.ctx.python_recipe.version[0:3]
28-
site_packages_dir = 'lib/python{python_version}/site-packages'.format(
29-
python_version=python_version)
30-
site_packages = join(self.ctx.get_python_install_dir(),
31-
site_packages_dir)
32-
shprint(sh.cp, '_crypto_sign.so', site_packages)
27+
shprint(sh.cp, '_crypto_sign.so', self.ctx.get_site_packages_dir())
3328
self.install_python_package(arch)
3429

3530

0 commit comments

Comments
 (0)