File: use_stsci_distutils_hack.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 (45 lines) | stat: -rw-r--r-- 1,172 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
Author: Ole Streicher <debian@liska.ath.cx>
Description: go back to the old distutils_hack to avoid dependencies
 on packages not debianized yet.
--- a/setup.py
+++ b/setup.py
@@ -1,15 +1,8 @@
 #!/usr/bin/env python
+from __future__ import division # confidence high
 
 try:
-    from setuptools import setup
+    import stsci.tools.stsci_distutils_hack as H
 except ImportError:
-    from distribute_setup import use_setuptools
-    use_setuptools()
-    from setuptools import setup
-
-setup(
-    setup_requires=['d2to1>=0.2.3', 'stsci.distutils>=0.3.2'],
-    d2to1=True,
-    use_2to3=True,
-    zip_safe=False
-)
+    import stsci_distutils_hack as H
+H.run()
--- a/setup.cfg
+++ b/setup.cfg
@@ -36,7 +36,7 @@
 	pywcs/tests/data = lib/pywcs/tests/data/*.fits
 
 [install_data]
-pre-hook.glob-data-files = stsci.distutils.hooks.glob_data_files
+#pre-hook.glob-data-files = stsci.distutils.hooks.glob_data_files
 
 [global]
 setup_hooks = 
@@ -93,7 +93,7 @@
 	_GNU_SOURCE
 
 [build_ext]
-pre-hook.numpy-extension-hook = stsci.distutils.hooks.numpy_extension_hook
+#pre-hook.numpy-extension-hook = stsci.distutils.hooks.numpy_extension_hook
 
 [egg_info]
 tag_build =