forked from nucypher/nucypher-pre-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (24 loc) · 811 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from distutils.core import setup, Extension
# Alternative method:
# https://github.com/Bitmessage/PyBitmessage/blob/master/src/pyelliptic/openssl.py
# Haven't tried that on Windows or Mac
INSTALL_REQUIRES = ['msgpack-python', 'pysha3', 'cryptography']
TESTS_REQUIRE = [
'pytest',
'coverage',
'pytest-cov',
'pdbpp',
'ipython'
]
elliptic_curve = Extension(
'npre.elliptic_curve',
sources=['npre/elliptic_curve/ecmodule.c'],
include_dirs=['npre/elliptic_curve'],
libraries=['crypto', 'gmp'])
setup(name='npre',
version='0.3',
description='NuCypher proxy re-encryption libraries',
ext_modules=[elliptic_curve],
extras_require={'testing': TESTS_REQUIRE},
install_requires=INSTALL_REQUIRES,
packages=['npre', 'npre.util'])