forked from tgalal/python-axolotl-curve25519
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
28 lines (27 loc) · 982 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
from __future__ import print_function
from glob import glob
from setuptools import setup,Extension
sources = ['curve25519module.c', 'curve/curve25519-donna.c']
sources.extend(glob("curve/ed25519/*.c"))
sources.extend(glob("curve/ed25519/additions/*.c"))
sources.extend(glob("curve/ed25519/nacl_sha512/*.c"))
#headers = ['curve25519-donna.h']
module_curve = Extension('axolotl_curve25519',
sources = sources,
# headers = headers,
include_dirs = [
'curve/ed25519/nacl_includes',
'curve/ed25519/additions',
'curve/ed25519'
]
)
setup(
name='python-axolotl-curve25519',
version="0.1",
license='GPLv3 License',
author='Tarek Galal',
ext_modules = [module_curve],
author_email='[email protected]',
description='curve25519 with ed25519 signatures, used by libaxolotl',
platforms='any'
)