1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Author: Ole Streicher <debian@liska.ath.cx>
Description: Use the wcslib provided by the Debian system instead of the
convienience copy in the upstream package.
--- a/defsetup.py
+++ b/defsetup.py
@@ -407,22 +407,21 @@
PYWCS_EXTENSIONS = [
Extension('pywcs._pywcs',
- WCSFILES + PYWCS_SOURCES,
+ PYWCS_SOURCES,
include_dirs =
[numpy_include,
- join(srcroot, WCSLIBC),
- WCSLIBC,
+ '/usr/include/wcslib',
join(srcroot, "src")
],
define_macros=define_macros,
undef_macros=undef_macros,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
- libraries=libraries
+ libraries=libraries + ['wcs', 'm']
)
]
-pkg = ["pywcs", "pywcs.tests"]
+pkg = ["pywcs" ]
setupargs = {
'version' : VERSION,
@@ -434,12 +433,7 @@
'ext_modules' : PYWCS_EXTENSIONS,
'data_files' : [
( 'pywcs/include', ['src/*.h']),
- ( 'pywcs/include/wcslib', [ WCSLIBC + '/*.h'] ),
- ( 'pywcs/tests/maps', ['lib/pywcs/tests/maps/*.hdr']),
- ( 'pywcs/tests/nrao', ['lib/pywcs/tests/nrao/*.hdr']),
- ( 'pywcs/tests/spectra', ['lib/pywcs/tests/spectra/*.hdr']),
- ( 'pywcs/tests/data', ['lib/pywcs/tests/data/*.hdr', 'lib/pywcs/tests/data/*.fits'])
],
- 'package_dir' : { 'pywcs' : 'lib/pywcs', 'pywcs.tests' : 'lib/pywcs/tests'},
+ 'package_dir' : { 'pywcs' : 'lib/pywcs'},
}
|