~ubuntu-branches/ubuntu/utopic/python-chaco/utopic

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-06 19:03:54 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110406190354-rwd55l2ezjecfo41
Tags: 3.4.0-2
d/rules: fix pyshared directory path (Closes: #621116)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
#
3
 
# Copyright (c) 2008-2010 by Enthought, Inc.
 
3
# Copyright (c) 2008-2011 by Enthought, Inc.
4
4
# All rights reserved.
5
5
 
6
6
"""
41
41
 
42
42
"""
43
43
 
44
 
import traceback
45
 
import sys
46
 
 
47
 
from distutils import log
48
 
from distutils.command.build import build as distbuild
49
44
from numpy import get_include
50
45
from setuptools import setup, Extension, find_packages
51
 
from setuptools.command.develop import develop
52
46
 
53
47
 
54
48
# FIXME: This works around a setuptools bug which gets setup_data.py metadata
80
74
#    )
81
75
 
82
76
 
83
 
class MyDevelop(develop):
84
 
    def run(self):
85
 
        develop.run(self)
86
 
        try:
87
 
            self.run_command('build_docs')
88
 
        except:
89
 
            log.warn("Couldn't build documentation:\n%s" %
90
 
                     traceback.format_exception(*sys.exc_info()))
91
 
 
92
 
 
93
 
class MyBuild(distbuild):
94
 
    def run(self):
95
 
        distbuild.run(self)
96
 
        try:
97
 
            self.run_command('build_docs')
98
 
        except:
99
 
            log.warn("Couldn't build documentation:\n%s" %
100
 
                     traceback.format_exception(*sys.exc_info()))
101
 
 
102
 
 
103
77
# The actual setup call.
104
78
setup(
105
79
    author = 'Peter Wang, et. al.',
120
94
        Topic :: Software Development
121
95
        Topic :: Software Development :: Libraries
122
96
        """.splitlines() if len(c.strip()) > 0],
123
 
    cmdclass = {
124
 
        'develop': MyDevelop,
125
 
        'build': MyBuild
126
 
    },
127
97
    package_data={'enthought': ['chaco/tools/toolbars/images/*.png']},
128
98
    description = DOCLINES[1],
129
99
    download_url = ('http://www.enthought.com/repo/ETS/Chaco-%s.tar.gz' %
130
 
        INFO['version']),
131
 
    extras_require = INFO["extras_require"],
 
100
                    INFO['version']),
132
101
    ext_modules = [contour],
133
102
    html_doc_repo = 'https://svn.enthought.com/svn/cec/trunk/projects/chaco/docs/',
134
103
    include_package_data = True,
147
116
        'examples.zoomed_plot'
148
117
        ]),
149
118
    platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
150
 
    setup_requires = 'setupdocs>=1.0',
151
119
    ssh_server = 'code.enthought.com',
152
120
    ssh_remote_dir = '/www/htdocs/code.enthought.com/projects/chaco/',
153
121
    tests_require = [
157
125
    url = 'http://code.enthought.com/projects/chaco',
158
126
    version = INFO["version"],
159
127
    zip_safe = False,
160
 
    )
 
128
)