diff --git a/.gitmodules b/.gitmodules index b1b4af9..484eaa7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/crypto/identity/bls_private_key.py b/crypto/identity/bls_private_key.py index dc14813..0e56c03 100644 --- a/crypto/identity/bls_private_key.py +++ b/crypto/identity/bls_private_key.py @@ -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 diff --git a/crypto/identity/bls_public_key.py b/crypto/identity/bls_public_key.py index a52fa24..00e9157 100644 --- a/crypto/identity/bls_public_key.py +++ b/crypto/identity/bls_public_key.py @@ -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 diff --git a/thirdparty/bls-signatures b/crypto/thirdparty/bls-signatures similarity index 100% rename from thirdparty/bls-signatures rename to crypto/thirdparty/bls-signatures diff --git a/setup.py b/setup.py index b27e4fc..7ce2715 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,8 @@ author='Ark Ecosystem', author_email='info@ark.io', 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,