~ubuntu-branches/ubuntu/wily/python-networkx/wily

« back to all changes in this revision

Viewing changes to setup_egg.py

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-03-02 01:06:32 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080302010632-1lp6qe1orf59jl8b
* debian/control:
   + Replace python-setuptools with python-pkg-resources in the
     “Recommends:” since pkg_resources is now available in this
     separate package, thanks Matthias Klose (Closes: #468721).
* debian/copyright:
   + Use “© $years $name” instead of invalid “$name, $years” and
     “(C) $years, $name”, thanks to lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
"""
3
 
An alternate setup.py script that uses setuptools.
4
 
 
5
 
If you have setuptools and run this as e.g.
6
 
python setup_egg.py bdist_egg
 
3
An alternate setup.py script for setuptools.
 
4
 
 
5
If you have setuptools and run this as 
 
6
 
 
7
>>> python setup_egg.py bdist_egg
 
8
 
7
9
you will get a python egg.
8
10
 
 
11
Use
 
12
 
 
13
>>> python setup_egg.py test
 
14
 
 
15
to run the tests.
 
16
 
 
17
 
9
18
"""
10
19
from setuptools import setup, Extension
11
 
execfile('setup.py')
 
20
from setup import *
 
21
 
 
22
if __name__ == "__main__":
 
23
 
 
24
    setup(
 
25
      name             = name,
 
26
      version          = version,
 
27
      author           = authors['Hagberg'][0],
 
28
      author_email     = authors['Hagberg'][1],
 
29
      description      = description,
 
30
      keywords         = keywords,
 
31
      long_description = long_description,
 
32
      license          = license,
 
33
      platforms        = platforms,
 
34
      url              = url,      
 
35
      download_url     = download_url,
 
36
      packages         = packages,
 
37
      data_files       = data,
 
38
      classifiers      = classifiers,
 
39
      package_data     = package_data,
 
40
      include_package_data = True,
 
41
      test_suite       = "networkx.tests.test.all", 
 
42
      )
 
43
 
12
44