2
# Installs pyTimechart using setuptools
4
# python setup.py install
5
# to install the package from the source archive.
8
from setuptools import setup, find_packages
10
# get version from source code
12
(line.split('=')[1]).strip().strip('"').strip("'")
13
for line in open(os.path.join('timechart', 'window.py'))
14
if line.startswith( '__version__' )
17
# get descriptions from documentation
20
for line in open(os.path.join('docs',os.path.join('sources', 'index.rst'))):
21
if line.startswith(".. DESC"):
22
current_part = line[7:].strip()
23
DOCLINES[current_part] = []
25
DOCLINES[current_part].append(line.strip())
28
if __name__ == "__main__":
29
# docs are only supposed to be generated by a few, so dont make it a hard dependancy
30
if "build_sphinx" in sys.argv or "upload_sphinx" in sys.argv:
31
extraArguments = {'setup_requires' : 'sphinx-pypi-upload>=0.2'}
34
### Now the actual set up call
36
name = DOCLINES["title"][1],
37
classifiers = [ c.strip() for c in """\
38
License :: OSI Approved :: BSD License
39
Programming Language :: Python
40
Topic :: Software Development :: Libraries :: Python Modules
41
Operating System :: Microsoft :: Windows
42
Operating System :: OS Independent
43
Operating System :: POSIX
44
Operating System :: Unix
45
Intended Audience :: Developers
46
""".splitlines() if len(c.strip()) > 0],
47
keywords = 'gui,ftrace,perf,trace-event',
49
url = "http://gitorious.org/pytimechart",
50
download_url = "http://gitorious.org/pytimechart",
51
description = DOCLINES["shortdesc"][1],
52
long_description = '\n'.join(DOCLINES["longdesc"][1:]),
53
author = "Pierre Tardy",
54
author_email = "tardyp@gmail.com",
56
'Chaco >= 3.0', # you should install that via distro rather than pypi..
57
# 'pyliblzma >= 0.5' # not really mandatory
60
platforms = ["Windows", "Linux", "Mac OS-X", # actually did not manage to make it work on osx because of Traits..
62
namespace_packages = [
67
packages = find_packages(exclude = [
74
include_package_data = True,
78
'formats':['gztar','zip'],},
83
'pytimechart=timechart.timechart:main',