forked from pygraphviz/pygraphviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_egg.py
executable file
·61 lines (47 loc) · 1.56 KB
/
setup_egg.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
#!/usr/bin/env python
"""
An alternate setup.py script for setuptools.
If you have setuptools and run this as
>>> python setup_egg.py bdist_egg
you will get a python egg.
Use
>>> python setup_egg.py test
to run the tests.
"""
# local import, might need modification for 2.6/3.0
from setup import *
# must occur after local import to override distutils.core.setup
from setuptools import setup, Extension
extension = [
Extension(
"pygraphviz._graphviz",
["pygraphviz/graphviz_wrap.c"],
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=["cgraph", "cdt"],
define_macros=define_macros,
**extension_args
)
]
if __name__ == "__main__":
setup(
name = release.name,
version = release.version,
author = release.authors['Hagberg'][0],
author_email = release.authors['Hagberg'][1],
description = release.description,
keywords = release.keywords,
long_description = release.long_description,
license = release.license,
platforms = release.platforms,
url = release.url,
download_url = release.download_url,
classifiers = release.classifiers,
packages = packages,
data_files = data,
ext_modules = extension,
package_data = package_data,
include_package_data = True,
test_suite = 'nose.collector',
tests_require = ['nose>=0.10.1'],
)