Skip to content

Commit 4403ec3

Browse files
committed
be explicit about the optional dependency on gmpy2
1 parent f7910cf commit 4403ec3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ To run the OpenSSL compatibility tests, the 'openssl' tool must be in your
4242
`PATH`. This release has been tested successfully against OpenSSL 0.9.8o,
4343
1.0.0a, 1.0.2f and 1.1.1d (among others).
4444

45+
46+
## Installation
47+
48+
This library is available on PyPI, it's recommended to install it using `pip`:
49+
50+
```
51+
pip install ecdsa
52+
```
53+
54+
In case higher performance is wanted and using native code is not a problem,
55+
it's possible to specify installation together with `gmpy2`:
56+
57+
```
58+
pip install ecdsa[gmpy2]
59+
```
60+
4561
## Speed
4662

4763
The following table shows how long this library takes to generate keypairs

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@
4141
"Programming Language :: Python :: 3.8",
4242
],
4343
install_requires=['six>=1.9.0'],
44+
extras_require={
45+
'gmpy2': 'gmpy2',
46+
},
4447
)

0 commit comments

Comments
 (0)