source: trunk/distutils/setup.py@ 2498

Last change on this file since 2498 was 2492, checked in by Malte Marquarding, 13 years ago

cleanup of compiler flags

File size: 2.1 KB
Line 
1import glob
2try:
3 from setuptools import setup
4except ImportError, ex:
5 from distutils.core import setup
6from distutils.core import Extension
7from setupext import casacorebuild_ext
8from distutils import ccompiler
9
10PKGNAME = "asap"
11EXTNAME = "_asap"
12
13sources = glob.glob('src/*.cpp')
14sources += glob.glob("external-alma/atnf/pks/pks_maths.cc")
15sources += glob.glob("external-alma/atnf/PKSIO/*.cc")
16sources += glob.glob("external/libpyrap/pyrap-0.3.2/pyrap/Converters/*.cc")
17
18headers = glob.glob('src/*.h')
19headers += glob.glob("external-alma/atnf/PKSIO/*.h")
20headers += glob.glob("external-alma/atnf/pks/pks_maths.h")
21headers += glob.glob("external/libpyrap/pyrap-0.3.2/pyrap/Converters/*.h")
22
23incdirs = ["external-alma"]
24incdirs += ["external/libpyrap/pyrap-0.3.2"]
25
26defines = [('HAVE_LIBPYRAP', None), ("AIPS_USENUMPY", None),
27 ('WCSLIB_GETWCSTAB', None)]
28
29casalibs = ['casa_images', 'casa_ms', 'casa_components', 'casa_coordinates',
30 'casa_fits', 'casa_lattices', 'casa_measures',
31 'casa_scimath', 'casa_scimath_f', 'casa_tables', 'casa_mirlib']
32
33# casa_casa is added by default
34
35asapextension = Extension(name="%s.%s" % (PKGNAME, EXTNAME),
36 sources = sources,
37 depends = headers,
38 libraries= casalibs,
39 define_macros = defines,
40 include_dirs = incdirs)
41
42
43setup(name = PKGNAME,
44 version = '4.1.x-trunk',
45 description = 'ATNF Spectral-line Analysis Package',
46 author = 'Malte Marquarding',
47 author_email = 'Malte.Marquarding@csiro.au',
48 url = 'http://svn.atnf.csiro.au/trac/asap',
49 keywords = ['radio astronomy', 'spectral-line', 'ATNF'],
50 long_description = '''A package to process and analyse spectral-line
51data from (ATNF) single-dish telescopes.
52''',
53 package_dir = {'asap': 'python'},
54 packages = ['asap'],
55 package_data = {"": ["data/ipy*"], },
56 scripts = ["bin/asap", "bin/asap_update_data",],
57 license = 'GPL',
58 ext_modules =[ asapextension ],
59 cmdclass={'build_ext': casacorebuild_ext})
60
Note: See TracBrowser for help on using the repository browser.