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 =
|