source: sasview/park-1.2.1/setup.py @ f80236f

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since f80236f was 4025019, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

Adding util and park

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[4025019]1#!/usr/bin/env python
2# This program is public domain
3
4import os
5import sys
6import numpy
7
8if len(sys.argv) == 1:
9    sys.argv.append('install')
10
11# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
12# update it when the contents of directories change.
13if os.path.exists('MANIFEST'): os.remove('MANIFEST')
14
15
16def configuration(parent_package='',
17                  top_path=None
18                  ):
19    from numpy.distutils.misc_util import Configuration
20    if  numpy.__version__ < '1.0.0':
21        raise RuntimeError, 'numpy version %s or higher required, but got %s'\
22              % ('1.0.0', numpy.__version__)
23
24    config = Configuration(None, parent_package, top_path)
25
26    config.set_options(ignore_setup_xxx_py=True,
27                        assume_default_configuration=True,
28                        delegate_options_to_subpackages=True,
29                        quiet=True
30                       )
31
32    config.add_subpackage('park')
33
34    config.add_data_files( ('park','*.txt') )
35    config.add_data_files( ('park','park.epydoc') )
36    config.get_version(os.path.join('park','version.py'))   # sets config.version
37
38    return config
39
40
41
42def setup_package():
43
44    from numpy.distutils.core import setup
45    from numpy.distutils.misc_util import Configuration
46
47    setup( name = 'park',
48           maintainer = "DANSE reflectometry group",
49           maintainer_email = "unknown",
50           description = "Distributed fitting service",
51           url = "http://www.reflectometry.org/danse/park",
52           license = 'BSD',
53           configuration=configuration
54           )
55
56
57if __name__ == '__main__':
58    setup_package()
Note: See TracBrowser for help on using the repository browser.