forked from chebee7i/nxpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (44 loc) · 1.26 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
# -*- coding: utf-8 -*-
"""
Setup script for `nxpd`.
"""
from __future__ import print_function
import os
import sys
from distutils.core import setup
def main():
requires = [
'networkx(>=1.6)',
'pyparsing(>=2.0.1)',
]
packages = [
'nxpd',
'nxpd.pydot',
]
description = """
`nxpd` is a Python package for visualizing NetworkX graphs using `pydot`
and `graphviz`. Support is also provided for inline displays within IPython
notebooks.
"""
setup(
name = "nxpd",
version = "0.1dev",
url = "https://github.com/chebee7i/nxpd",
packages = packages,
provides = ['nxpd'],
requires = requires,
author = "chebee7i",
author_email = "chebee7i@gmail.com",
description = "NetworkX Pydot Draw",
long_description = description,
license = "Unlicense",
)
if __name__ == '__main__':
v = sys.version_info[:2]
if v < (2, 6):
msg = "nxpd requires Python 2.6 or newer.\n"
print(msg)
sys.exit(-1)
if sys.argv[-1] == 'setup.py':
print("To install, run 'python setup.py install'.\n")
main()