forked from pmatiello/python-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·51 lines (47 loc) · 1.71 KB
/
setup.py
File metadata and controls
executable file
·51 lines (47 loc) · 1.71 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import logging
try:
from setuptools import setup, find_packages
except ImportError, ie:
import ez_setup
ez_setup.use_setuptools()
# Startup
appname = "python-graph"
appversion = "1.4.0"
# Extra files
if (os.name == 'posix'): # Files to be installed/packaged on Unix-like systems
datadir = 'share/doc/'+appname+appversion
datafiles = ['README', 'COPYING', 'Changelog']
docsdir = datadir + '/docs'
docsfiles = []
try:
dirlisting = os.listdir('docs/')
except:
print "Documentation isn't present and will not be installed/packaged."
dirlisting = []
for each in dirlisting:
docsfiles.append('docs/'+each)
else: # Other systems
datadir = ''
datafiles = []
docsdir = ''
docsfiles = []
setup(
name = appname,
version = appversion,
packages = ['graph', 'graph.algorithms', 'graph.algorithms.heuristics', 'graph.classes'],
data_files = [(docsdir,docsfiles),
(datadir,datafiles)],
author = "Pedro Matiello",
description = "A library for working with graphs in Python",
license = "MIT",
keywords = "python graph algorithms library",
url = "http://code.google.com/p/python-graph/",
classifiers = ["License :: OSI Approved :: MIT License","Topic :: Software Development :: Libraries :: Python Modules"],
long_description = "python-graph is a library for working with graphs in Python. This software provides a suitable data structure for representing graphs and a whole set of important algorithms.",
test_suite = "graph.tests",
)