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
47
48
49
50
51
52
53
54
55
|
--- scipy/stsci/image/setup.py.orig 1970-01-01 01:00:00.000000000 +0100
+++ scipy/stsci/image/setup.py 2007-02-07 01:20:26.000000000 +0000
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+import numpy
+
+def configuration(parent_package='',top_path=None):
+ from numpy.distutils.misc_util import Configuration
+ config = Configuration('image',parent_package,top_path,
+ package_path='lib')
+ config.add_extension('_combine',
+ sources=["src/_combinemodule.c"],
+ define_macros = [('NUMPY', '1')],
+ include_dirs = [numpy.get_numarray_include()])
+ return config
+
+if __name__ == "__main__":
+ from numpy.distutils.core import setup
+ config = configuration(top_path='').todict()
+ setup(author='Todd Miller',
+ author_email = 'help@stsci.edu',
+ description = 'image array manipulation functions',
+ version = '2.0',
+ **config)
+
--- scipy/stsci/convolve/setup.py.orig 1970-01-01 01:00:00.000000000 +0100
+++ scipy/stsci/convolve/setup.py 2007-03-14 16:52:59.000000000 +0000
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+import numpy
+
+def configuration(parent_package='',top_path=None):
+ from numpy.distutils.misc_util import Configuration
+ config = Configuration('convolve',parent_package,top_path,
+ package_path='lib')
+
+ config.add_extension('_correlate',
+ sources=["src/_correlatemodule.c"],
+ define_macros = [('NUMPY', '1')],
+ include_dirs = [numpy.get_numarray_include()])
+ config.add_extension('_lineshape',
+ sources=["src/_lineshapemodule.c"],
+ define_macros = [('NUMPY', '1')],
+ include_dirs = [numpy.get_numarray_include()])
+ return config
+
+if __name__ == "__main__":
+ from numpy.distutils.core import setup
+ config = configuration(top_path='').todict()
+ setup(author='Todd Miller',
+ author_email = 'help@stsci.edu',
+ description = 'image array convolution functions',
+ version = '2.0',
+ **config)
+
|