-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (65 loc) · 2.39 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
69
70
71
72
73
#!/usr/bin/env python
import os
from distutils.core import setup, Extension
MODULE = 'pynauty'
VERSION = '0.6.0'
description = 'Automorphism and isomorphism of graphs'
long_description = '''
Package for testing isomorphism of graphs
and computing their automorphism group.
'''
author = 'Peter Dobsan'
author_email = 'pdobsan@gmail.com'
url = 'https://github.com/pdobsan/pynauty'
license = 'GNU General Public License v3'
platforms = ['Linux', 'Unix', 'OS X']
classifiers = [
'Environment :: Console',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: C',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Computing Science',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
]
pynauty_dir = 'src'
package_dir = { MODULE : pynauty_dir}
packages = [ MODULE ]
scripts = []
data_files = []
nauty_dir = 'nauty' # nauty's source directory
if not os.access(nauty_dir, os.R_OK | os.X_OK):
print("Can't find nauty_dir: %s" % nauty_dir)
raise SystemExit(1)
ext_pynauty = Extension(
name = MODULE + '.nautywrap',
sources = [ pynauty_dir + '/' + 'nautywrap.c', ],
extra_compile_args = [ '-O4', '-fPIC' ],
extra_objects = [ nauty_dir + '/' + 'nauty.o',
nauty_dir + '/' + 'nautil.o',
nauty_dir + '/' + 'naugraph.o',
nauty_dir + '/' + 'schreier.o',
nauty_dir + '/' + 'naurng.o',
],
include_dirs = [ nauty_dir, pynauty_dir ]
)
ext_modules = [ ext_pynauty ]
setup( name = MODULE, version = VERSION,
description = description, long_description = long_description,
author = author, author_email = author_email, url = url,
platforms = platforms,
license = license,
package_dir = package_dir,
packages = packages,
scripts = scripts,
data_files = data_files,
ext_modules = ext_modules,
classifiers = classifiers,
)
# vim: expandtab: