Skip to content

Commit 9d3312e

Browse files
authoredDec 23, 2019
Merge pull request #380 from ShadowJonathan/fix_dependencies
Fix dependency issues (and fastecdsa windows depencency)
2 parents 1571bfa + 0b97f4d commit 9d3312e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
 

‎setup.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@
4343
+ extras_require["doc"]
4444
)
4545

46+
fastecdsa = [
47+
# No official fastecdsa==1.7.4,1.7.5 wheels for Windows, using a pypi package that includes
48+
# the original library, but also windows-built wheels (32+64-bit) on those versions.
49+
# Fixme: Remove section when fastecdsa has released a windows-compatible wheel
50+
# (specifically: both win32 and win_amd64 targets)
51+
# See the following issues for more information;
52+
# https://github.com/libp2p/py-libp2p/issues/363
53+
# https://github.com/AntonKueltz/fastecdsa/issues/11
54+
"fastecdsa-any==1.7.5;sys_platform=='win32'",
55+
# Wheels are provided for these platforms, or compiling one is minimally frustrating in a
56+
# default python installation.
57+
"fastecdsa==1.7.5;sys_platform!='win32'",
58+
]
59+
4660

4761
with open("./README.md") as readme:
4862
long_description = readme.read()
@@ -67,7 +81,7 @@
6781
# RTD system so we have to exclude these dependencies when we are in an RTD environment.
6882
readthedocs_is_building = os.environ.get("READTHEDOCS", False)
6983
if not readthedocs_is_building:
70-
install_requires.append("fastecdsa==1.7.4")
84+
install_requires.extend(fastecdsa)
7185

7286

7387
setup(

0 commit comments

Comments
 (0)
Please sign in to comment.