- include missing setup files for stsci module

This commit is contained in:
Jef Spaleta 2008-10-02 17:22:00 +00:00
parent ea45f092ed
commit 2a3713a7d4
3 changed files with 58 additions and 1 deletions

View File

@ -3,12 +3,16 @@
Summary: Scipy: Scientific Tools for Python Summary: Scipy: Scientific Tools for Python
Name: scipy Name: scipy
Version: 0.6.0 Version: 0.6.0
Release: 5%{?dist} Release: 6%{?dist}
Group: Development/Libraries Group: Development/Libraries
License: BSD and LGPLv2+ License: BSD and LGPLv2+
Url: http://www.scipy.org Url: http://www.scipy.org
Source0: http://prdownloads.sourceforge.net/scipy/%{name}-%{version}.tar.gz Source0: http://prdownloads.sourceforge.net/scipy/%{name}-%{version}.tar.gz
# Missing setup.py files which control the build of this module
# These should be removed as soon as upstream pushes a release with this fixed
Source1: stsci_image_setup.py
Source2: stsci_convolve_setup.py
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -44,6 +48,9 @@ include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
umfpack_libs = umfpack umfpack_libs = umfpack
EOF EOF
cp %{SOURCE1} scipy/stsci/image/
cp %{SOURCE2} scipy/stsci/convolve/
%build %build
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 --noarch build env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 --noarch build
@ -66,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Oct 02 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-6
- include missing setup files for stsci module
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.0-5 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.0-5
- Autorebuild for GCC 4.3 - Autorebuild for GCC 4.3

26
stsci_convolve_setup.py Normal file
View File

@ -0,0 +1,26 @@
#!/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)

21
stsci_image_setup.py Executable file
View File

@ -0,0 +1,21 @@
#!/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)