Skip to content

Commit c977e1c

Browse files
authored
Fix xeddsa crypto_sign shared lib copy
Could be `_crypto_sign.cpython-37m-x86_64-linux-gnu.so` or simply `_crypto_sign.so` depending on the platform/distribution
1 parent 2a1944f commit c977e1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/recipes/xeddsa/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def build_arch(self, arch):
2424
hostpython, 'ref10/build.py',
2525
_env=env
2626
)
27-
shprint(sh.cp, '_crypto_sign.so', self.ctx.get_site_packages_dir())
27+
# the library could be `_crypto_sign.cpython-37m-x86_64-linux-gnu.so`
28+
# 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())
2830
self.install_python_package(arch)
2931

3032

0 commit comments

Comments
 (0)