Skip to content

Commit

Permalink
fix: include submodule in packages (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Aug 21, 2024
1 parent 45ece77 commit 63e828a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "thirdparty/bls-signatures"]
path = thirdparty/bls-signatures
[submodule "crypto/thirdparty/bls-signatures"]
path = crypto/thirdparty/bls-signatures
url = https://github.com/ArkEcosystem/bls-signatures
2 changes: 1 addition & 1 deletion crypto/identity/bls_private_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from os.path import dirname

sys.path.append(os.path.join(dirname(dirname(dirname(__file__))), 'thirdparty/bls-signatures/python-impl'))
sys.path.append(os.path.join(dirname(dirname(__file__)), 'thirdparty/bls-signatures/python-impl'))

from schemes import BasicSchemeMPL

Expand Down
2 changes: 1 addition & 1 deletion crypto/identity/bls_public_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from os.path import dirname

sys.path.append(os.path.join(dirname(dirname(dirname(__file__))), 'thirdparty/bls-signatures/python-impl'))
sys.path.append(os.path.join(dirname(dirname(__file__)), 'thirdparty/bls-signatures/python-impl'))

from schemes import PrivateKey

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
author='Ark Ecosystem',
author_email='[email protected]',
url='https://github.com/ArkEcosystem/python-crypto',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
packages=setuptools.find_packages(exclude=['tests', 'tests.*', 'crypto/thirdparty/bls-signatures'])
+ ['crypto/thirdparty/bls-signatures/python-impl'],
install_requires=requires,
extras_require=extras_require,
tests_require=tests_require,
Expand Down

0 comments on commit 63e828a

Please sign in to comment.