-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·61 lines (51 loc) · 1.48 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
from graphgen.nauty import NAUTY_PATH
from setuptools import setup
import setuptools.command.develop
import setuptools.command.build_py
from subprocess import check_call
def _install_nauty():
"""
Install the Nauty library.
"""
check_call(['make', 'clean', '-C', NAUTY_PATH])
check_call(['make', '-C', NAUTY_PATH])
def _custom_install():
"""
Custom installation.
"""
_install_nauty()
class develop(setuptools.command.develop.develop):
def run(self):
_custom_install()
setuptools.command.develop.develop.run(self)
class build(setuptools.command.build_py.build_py):
def run(self):
_custom_install()
setuptools.command.build_py.build_py.run(self)
setup(name='graphgen',
version='1.0',
description='A library for random graph generation',
url='https://github.com/Nico-Salamone/graphgen',
author='Nico Salamone',
author_email='[email protected]',
license='MIT',
python_requires='>=3.0.*',
install_requires=['networkx',
'numpy',
'scipy'],
include_package_data=True,
cmdclass={
'develop': develop,
'build_py': build
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=['graphgen'])