File: pywcs-unbundle.patch

package info (click to toggle)
python-pywcs 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,044 kB
  • ctags: 14,301
  • sloc: ansic: 31,568; lex: 6,170; fortran: 6,079; python: 4,345; sh: 3,479; sed: 408; makefile: 79
file content (46 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download
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'},
 }