-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·68 lines (62 loc) · 1.46 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
#cython: language_level=3
import os
from setuptools import setup, Extension
import sys
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import numpy
import numpy.distutils
extra_link_args = ['-lblas']
include_dirs = numpy.distutils.misc_util.get_numpy_include_dirs()
extensions = cythonize(
Extension(
"nnattack.attacks.nns.cutils",
["nnattack/attacks/nns/cutils.pyx"],
extra_link_args=extra_link_args,
extra_compile_args=['-std=c11'],
include_dirs=include_dirs,
),
)
cmdclasses = {'build_ext': build_ext}
setup_requires = [
]
install_requires = [
'numpy',
'scipy',
'scikit-learn',
'Cython',
'joblib',
'six',
'cvxopt',
]
tests_require = [
'nose',
'coverage',
]
setup(
name='attacks',
version='0.0.1',
description='',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Y.-Y. Yang',
author_email='',
url='',
cmdclass=cmdclasses,
setup_requires=setup_requires,
install_requires=install_requires,
tests_require=tests_require,
classifiers=[
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
test_suite='nnattack',
packages=[
],
package_dir={
},
ext_modules=extensions,
)