|
Revision 547, 1.1 KB
(checked in by rkern, 5 years ago)
|
|
Move the delaunay package from the scipy sandbox as a separate scikit.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #!/usr/bin/env python |
|---|
| 2 | import os |
|---|
| 3 | import sys |
|---|
| 4 | |
|---|
| 5 | import setuptools |
|---|
| 6 | |
|---|
| 7 | subpackage = 'delaunay' |
|---|
| 8 | version = '0.5' |
|---|
| 9 | |
|---|
| 10 | def configuration(parent_package='',top_path=None): |
|---|
| 11 | from numpy.distutils.misc_util import Configuration |
|---|
| 12 | config = Configuration(None, parent_package, top_path, |
|---|
| 13 | namespace_packages=['scikits']) |
|---|
| 14 | config.set_options( |
|---|
| 15 | ignore_setup_xxx_py=True, |
|---|
| 16 | assume_default_configuration=True, |
|---|
| 17 | delegate_options_to_subpackages=True, |
|---|
| 18 | quiet=True, |
|---|
| 19 | ) |
|---|
| 20 | |
|---|
| 21 | config.add_subpackage('scikits.delaunay') |
|---|
| 22 | config.add_data_files('scikits/__init__.py') |
|---|
| 23 | |
|---|
| 24 | return config |
|---|
| 25 | |
|---|
| 26 | def setup_package(): |
|---|
| 27 | |
|---|
| 28 | from numpy.distutils.core import setup |
|---|
| 29 | |
|---|
| 30 | setup( |
|---|
| 31 | name = 'scikits.' + subpackage, |
|---|
| 32 | version = version, |
|---|
| 33 | maintainer = "Robert Kern", |
|---|
| 34 | maintainer_email = "robert.kern@gmail.com", |
|---|
| 35 | description = "Delaunay triangulation and interpolation tools.", |
|---|
| 36 | url = "http://www.scipy.org", |
|---|
| 37 | license = 'BSD', |
|---|
| 38 | configuration = configuration, |
|---|
| 39 | install_requires = [ |
|---|
| 40 | 'numpy >= 1.0.2', |
|---|
| 41 | ], |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | ) |
|---|
| 45 | |
|---|
| 46 | return |
|---|
| 47 | |
|---|
| 48 | if __name__ == '__main__': |
|---|
| 49 | setup_package() |
|---|