Skip to content
Browse files

MAINT: remove Numscons build support.

  • Loading branch information...
1 parent daf143a commit 43fdb2164eba2ea0ddf051c8a521ea8e20e62fde @rgommers rgommers committed with pv May 5, 2013
Showing with 5 additions and 1,967 deletions.
  1. +1 −1 HACKING.rst.txt
  2. +1 −1 MANIFEST.in
  3. +2 −2 THANKS.txt
  4. +1 −1 release.sh
  5. +0 −15 scipy/cluster/SConscript
  6. +0 −2 scipy/cluster/SConstruct
  7. +0 −29 scipy/cluster/setupscons.py
  8. +0 −41 scipy/fftpack/SConscript
  9. +0 −2 scipy/fftpack/SConstruct
  10. +0 −28 scipy/fftpack/setupscons.py
  11. +0 −82 scipy/integrate/SConscript
  12. +0 −2 scipy/integrate/SConstruct
  13. +0 −20 scipy/integrate/setupscons.py
  14. +0 −49 scipy/interpolate/SConscript
  15. +0 −2 scipy/interpolate/SConstruct
  16. +0 −19 scipy/interpolate/setupscons.py
  17. +0 −5 scipy/io/SConscript
  18. +0 −2 scipy/io/SConstruct
  19. +0 −14 scipy/io/harwell_boeing/setupscons.py
  20. +0 −6 scipy/io/matlab/SConscript
  21. +0 −2 scipy/io/matlab/SConstruct
  22. +0 −15 scipy/io/matlab/setupscons.py
  23. +0 −20 scipy/io/setupscons.py
  24. +0 −81 scipy/lib/blas/SConscript
  25. +0 −2 scipy/lib/blas/SConstruct
  26. +0 −18 scipy/lib/blas/setupscons.py
  27. +0 −81 scipy/lib/lapack/SConscript
  28. +0 −2 scipy/lib/lapack/SConstruct
  29. +0 −22 scipy/lib/lapack/setupscons.py
  30. +0 −18 scipy/lib/setupscons.py
  31. +0 −129 scipy/linalg/SConscript
  32. +0 −2 scipy/linalg/SConstruct
  33. +0 −20 scipy/linalg/setupscons.py
  34. +0 −13 scipy/misc/setupscons.py
  35. +0 −12 scipy/ndimage/SConscript
  36. +0 −2 scipy/ndimage/SConstruct
  37. +0 −18 scipy/ndimage/setupscons.py
  38. +0 −57 scipy/odr/SConscript
  39. +0 −2 scipy/odr/SConstruct
  40. +0 −19 scipy/odr/setupscons.py
  41. +0 −88 scipy/optimize/SConscript
  42. +0 −2 scipy/optimize/SConstruct
  43. +0 −16 scipy/optimize/setupscons.py
  44. +0 −46 scipy/setupscons.py
  45. +0 −21 scipy/signal/SConscript
  46. +0 −2 scipy/signal/SConstruct
  47. +0 −18 scipy/signal/setupscons.py
  48. +0 −11 scipy/sparse/csgraph/SConscript
  49. +0 −2 scipy/sparse/csgraph/SConstruct
  50. +0 −18 scipy/sparse/csgraph/setupscons.py
  51. +0 −51 scipy/sparse/linalg/dsolve/SConscript
  52. +0 −2 scipy/sparse/linalg/dsolve/SConstruct
  53. +0 −23 scipy/sparse/linalg/dsolve/setupscons.py
  54. +0 −32 scipy/sparse/linalg/dsolve/umfpack/SConscript
  55. +0 −2 scipy/sparse/linalg/dsolve/umfpack/SConstruct
  56. +0 −35 scipy/sparse/linalg/dsolve/umfpack/setupscons.py
  57. +0 −65 scipy/sparse/linalg/eigen/arpack/SConscript
  58. +0 −2 scipy/sparse/linalg/eigen/arpack/SConstruct
  59. +0 −39 scipy/sparse/linalg/eigen/arpack/setupscons.py
  60. +0 −16 scipy/sparse/linalg/eigen/lobpcg/setupscons.py
  61. +0 −17 scipy/sparse/linalg/eigen/setupscons.py
  62. +0 −73 scipy/sparse/linalg/isolve/SConscript
  63. +0 −2 scipy/sparse/linalg/isolve/SConstruct
  64. +0 −18 scipy/sparse/linalg/isolve/setupscons.py
  65. +0 −21 scipy/sparse/linalg/setupscons.py
  66. +0 −24 scipy/sparse/setupscons.py
  67. +0 −10 scipy/sparse/sparsetools/SConscript
  68. +0 −2 scipy/sparse/sparsetools/SConstruct
  69. +0 −22 scipy/sparse/sparsetools/setupscons.py
  70. +0 −52 scipy/spatial/SConscript
  71. +0 −2 scipy/spatial/SConstruct
  72. +0 −26 scipy/spatial/setupscons.py
  73. +0 −112 scipy/special/SConscript
  74. +0 −2 scipy/special/SConstruct
  75. +0 −22 scipy/special/setupscons.py
  76. +0 −39 scipy/stats/SConscript
  77. +0 −2 scipy/stats/SConstruct
  78. +0 −18 scipy/stats/setupscons.py
  79. +0 −26 scipy/weave/setupscons.py
  80. +0 −7 setupeggscons.py
  81. +0 −114 setupscons.py
  82. +0 −7 setupsconsegg.py
View
2 HACKING.rst.txt
@@ -172,7 +172,7 @@ Checklist before submitting a PR
- In case of larger additions, is there a tutorial or more extensive
module-level description?
- In case compiled code is added, is it integrated correctly via setup.py
- (and preferably also Bento/Numscons configuration files)?
+ (and preferably also Bento configuration files - bento.info and bscript)?
- If you are a first-time contributor, did you add yourself to THANKS.txt?
Please note that this is perfectly normal and desirable - the aim is to
give every single contributor credit, and if you don't add yourself it's
View
2 MANIFEST.in
@@ -1,7 +1,7 @@
include MANIFEST.in
include *.txt
# Top-level build scripts
-include setup.py setupscons.py bscript bento.info
+include setup.py bscript bento.info
# All source files
recursive-include scipy *
# All documentation
View
4 THANKS.txt
@@ -27,8 +27,8 @@ Travis Vaught for numerous contributions to annual conference and community
web-site and the initial work on stats module clean up.
Jeff Whitaker for Mac OS X support.
David Cournapeau for bug-fixes, refactoring of fftpack and cluster,
- implementing the numscons build, building Windows binaries and
- adding single precision FFT.
+ implementing the numscons and Bento build support, building Windows
+ binaries and adding single precision FFT.
Damian Eads for hierarchical clustering, dendrogram plotting,
distance functions in spatial package, vq documentation.
Anne Archibald for kd-trees and nearest neighbor in scipy.spatial.
View
2 release.sh
@@ -16,7 +16,7 @@ fi
# bootstrap needed to ensure we build the docs from the right scipy version
paver bootstrap
source bootstrap/bin/activate
-python setupsconsegg.py install
+python setupegg.py install
# we need to copy Sphinx extensions from the numpy source tree
mkdir doc/sphinxext
View
15 scipy/cluster/SConscript
@@ -1,15 +0,0 @@
-# Last Change: Mon Nov 03 07:00 PM 2008 J
-# vim:syntax=python
-from os.path import join
-
-from numscons import GetNumpyEnvironment
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-env.NumpyPythonExtension('_hierarchy_wrap',
- source = [join('src', 'hierarchy_wrap.c'),
- join('src', 'hierarchy.c')])
-
-env.NumpyPythonExtension('_vq',
- source = [join('src', 'vq_module.c'),
- join('src', 'vq.c')])
View
2 scipy/cluster/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
29 scipy/cluster/setupscons.py
@@ -1,29 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-
-def configuration(parent_package='', top_path=None):
- from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
- config = Configuration('cluster', parent_package, top_path)
-
- config.add_data_dir('tests')
-
- #config.add_extension('_vq',
- # sources=[join('src', 'vq_module.c'), join('src', 'vq.c')],
- # include_dirs = [get_numpy_include_dirs()])
- config.add_sconscript('SConstruct')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(maintainer="SciPy Developers",
- author="Eric Jones",
- maintainer_email="scipy-dev@scipy.org",
- description="Clustering Algorithms (Information Theory)",
- url="http://www.scipy.org",
- license="SciPy License (BSD Style)",
- **configuration(top_path='').todict()
- )
View
41 scipy/fftpack/SConscript
@@ -1,41 +0,0 @@
-# Last Change: Sat Jan 24 04:00 PM 2009 J
-# vim:syntax=python
-from os.path import join as pjoin
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77Mangling
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-
-config = env.NumpyConfigure(custom_tests = {'CheckF77Mangling' : CheckF77Mangling})
-config.CheckF77Mangling()
-config.Finish()
-
-# Build dfftpack
-src = [pjoin("src/dfftpack", i) for i in [ "dcosqb.f", "dcosqf.f", "dcosqi.f",
-"dcost.f", "dcosti.f", "dfftb.f", "dfftb1.f", "dfftf.f", "dfftf1.f", "dffti.f",
-"dffti1.f", "dsinqb.f", "dsinqf.f", "dsinqi.f", "dsint.f", "dsint1.f",
-"dsinti.f", "zfftb.f", "zfftb1.f", "zfftf.f", "zfftf1.f", "zffti.f",
-"zffti1.f"]]
-dfftpack = env.DistutilsStaticExtLibrary('dfftpack', source = [str(s) for s in src])
-
-# Build fftpack (single prec)
-src = [pjoin("src/fftpack", i) for i in [ 'cfftb.f', 'cfftb1.f', 'cfftf.f',
-'cfftf1.f', 'cffti.f', 'cffti1.f', 'cosqb.f', 'cosqf.f', 'cosqi.f', 'cost.f',
-'costi.f', 'rfftb.f', 'rfftb1.f', 'rfftf.f', 'rfftf1.f', 'rffti.f',
-'rffti1.f', 'sinqb.f', 'sinqf.f', 'sinqi.f', 'sint.f', 'sint1.f', 'sinti.f']]
-fftpack = env.DistutilsStaticExtLibrary('fftpack', source = [str(s) for s in src])
-
-env.PrependUnique(LIBS = ['fftpack', 'dfftpack'])
-env.PrependUnique(LIBPATH = ['.'])
-
-# Build _fftpack
-src = ['src/zfft.c','src/drfft.c','src/zrfft.c', 'src/zfftnd.c', 'fftpack.pyf']
-src += env.FromCTemplate('src/dct.c.src')
-src += env.FromCTemplate('src/dst.c.src')
-env.NumpyPythonExtension('_fftpack', src)
-
-# Build convolve
-src = ['src/convolve.c', 'convolve.pyf']
-env.NumpyPythonExtension('convolve', src)
View
2 scipy/fftpack/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
28 scipy/fftpack/setupscons.py
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-# Created by Pearu Peterson, August 2002
-from __future__ import division, print_function, absolute_import
-
-
-from os.path import join
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- from numpy.distutils.system_info import get_info
- config = Configuration('fftpack',parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- from .fftpack_version import fftpack_version
- setup(version=fftpack_version,
- description='fftpack - Discrete Fourier Transform package',
- author='Pearu Peterson',
- author_email='pearu@cens.ioc.ee',
- maintainer_email='scipy-dev@scipy.org',
- license='SciPy License (BSD Style)',
- **configuration(top_path='').todict())
View
82 scipy/integrate/SConscript
@@ -1,82 +0,0 @@
-# Last Change: Wed Apr 08 11:00 PM 2009 J
-# vim:syntax=python
-from os.path import join as pjoin
-import warnings
-
-from numscons import GetNumpyEnvironment, CheckF77Clib, CheckF77BLAS
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-
-# Configuration
-config = env.NumpyConfigure(custom_tests = {'CheckF77BLAS' : CheckF77BLAS})
-
-if not config.CheckF77BLAS():
- raise Exception("Could not find F77 BLAS, needed for integrate package")
-
-config.Finish()
-
-# XXX: lapack integration
-
-# Build linpack_lite
-src = [pjoin("linpack_lite", s) for s in [ "dgbfa.f", "dgbsl.f", "dgefa.f",
-"dgesl.f", "dgtsl.f", "zgbfa.f", "zgbsl.f", "zgefa.f", "zgesl.f"]]
-linpack_lite = env.DistutilsStaticExtLibrary('linpack_lite', source = src)
-
-# Build mach
-# XXX: do not use optimization flags for mach
-src = [pjoin("mach", s) for s in ["d1mach.f", "i1mach.f", "r1mach.f",
-"xerror.f"]]
-mach = env.DistutilsStaticExtLibrary('mach', source = src)
-
-# Build quadpack
-src = [pjoin("quadpack", s) for s in ["dqag.f", "dqage.f", "dqagi.f",
-"dqagie.f", "dqagp.f", "dqagpe.f", "dqags.f", "dqagse.f", "dqawc.f",
-"dqawce.f", "dqawf.f", "dqawfe.f", "dqawo.f", "dqawoe.f", "dqaws.f",
-"dqawse.f", "dqc25c.f", "dqc25f.f", "dqc25s.f", "dqcheb.f", "dqelg.f",
-"dqk15.f", "dqk15i.f", "dqk15w.f", "dqk21.f", "dqk31.f", "dqk41.f", "dqk51.f",
-"dqk61.f", "dqmomo.f", "dqng.f", "dqpsrt.f", "dqwgtc.f", "dqwgtf.f",
-"dqwgts.f"]]
-quadpack = env.DistutilsStaticExtLibrary('quadpack', source = src)
-
-
-src = [pjoin('dop', f) for f in ['dop853.f', 'dopri5.f']]
-env.DistutilsStaticExtLibrary('dop', source=src)
-
-# Build odepack
-src = [pjoin("odepack", s) for s in [ "adjlr.f", "aigbt.f", "ainvg.f",
-"blkdta000.f", "bnorm.f", "cdrv.f", "cfode.f", "cntnzu.f", "ddasrt.f",
-"ddassl.f", "decbt.f", "ewset.f", "fnorm.f", "intdy.f", "iprep.f", "jgroup.f",
-"lsoda.f", "lsodar.f", "lsode.f", "lsodes.f", "lsodi.f", "lsoibt.f", "md.f",
-"mdi.f", "mdm.f", "mdp.f", "mdu.f", "nnfc.f", "nnsc.f", "nntc.f", "nroc.f",
-"nsfc.f", "odrv.f", "pjibt.f", "prep.f", "prepj.f", "prepji.f", "prja.f",
-"prjs.f", "rchek.f", "roots.f", "slsbt.f", "slss.f", "solbt.f",
-"solsy.f", "srcar.f", "srcma.f", "srcms.f", "srcom.f", "sro.f", "stoda.f",
-"stode.f", "stodi.f", "vmnorm.f", "vnorm.f", "vode.f", "xerrwv.f", "xsetf.f",
-"xsetun.f", "zvode.f"]]
-odepack = env.DistutilsStaticExtLibrary('odepack', source = src)
-
-env.AppendUnique(LIBPATH = '.')
-
-quadenv = env.Clone()
-quadenv.Prepend(LIBS = ['quadpack', 'linpack_lite', 'mach'])
-
-odenv = env.Clone()
-odenv.Prepend(LIBS = ['odepack', 'linpack_lite', 'mach'])
-
-# Build _quadpack
-quadenv.NumpyPythonExtension('_quadpack', source = '_quadpackmodule.c')
-
-# Build _odepack
-odenv.NumpyPythonExtension('_odepack', source = '_odepackmodule.c')
-
-# Build vode
-odenv.NumpyPythonExtension('vode', source = 'vode.pyf')
-
-# Build lsoda
-odenv.NumpyPythonExtension('lsoda', source = 'lsoda.pyf')
-
-# Dop extension
-dopenv = env.Clone()
-dopenv.Prepend(LIBS=['dop'])
-dopenv.NumpyPythonExtension('_dop', source='dop.pyf')
View
2 scipy/integrate/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
20 scipy/integrate/setupscons.py
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-from os.path import join
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('integrate', parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
49 scipy/interpolate/SConscript
@@ -1,49 +0,0 @@
-# Last Change: Fri Oct 10 03:00 PM 2008 J
-# vim:syntax=python
-from os.path import join as pjoin
-
-from numscons import GetNumpyEnvironment, CheckF77Clib, CheckF77Mangling
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-
-config = env.NumpyConfigure(custom_tests = {'CheckF77Clib' : CheckF77Clib, 'CheckF77Mangling': CheckF77Mangling})
-if not config.CheckF77Clib():
- raise Exception("Could not check F77 runtime, needed for interpolate")
-config.CheckF77Mangling()
-config.Finish()
-
-# Build fitpack
-src = [pjoin("fitpack", s) for s in ["bispev.f", "bispeu.f", "clocur.f",
-"cocosp.f", "concon.f", "concur.f", "cualde.f", "curev.f", "curfit.f",
-"dblint.f", "evapol.f", "fourco.f", "fpader.f", "fpadno.f", "fpadpo.f",
-"fpback.f", "fpbacp.f", "fpbfout.f", "fpbisp.f", "fpbspl.f", "fpchec.f",
-"fpched.f", "fpchep.f", "fpclos.f", "fpcoco.f", "fpcons.f", "fpcosp.f",
-"fpcsin.f", "fpcurf.f", "fpcuro.f", "fpcyt1.f", "fpcyt2.f", "fpdeno.f",
-"fpdisc.f", "fpfrno.f", "fpgivs.f", "fpgrdi.f", "fpgrpa.f", "fpgrre.f",
-"fpgrsp.f", "fpinst.f", "fpintb.f", "fpknot.f", "fpopdi.f", "fpopsp.f",
-"fporde.f", "fppara.f", "fppasu.f", "fpperi.f", "fppocu.f", "fppogr.f",
-"fppola.f", "fprank.f", "fprati.f", "fpregr.f", "fprota.f", "fprppo.f",
-"fprpsp.f", "fpseno.f", "fpspgr.f", "fpsphe.f", "fpsuev.f", "fpsurf.f",
-"fpsysy.f", "fptrnp.f", "fptrpe.f", "insert.f", "parcur.f", "parder.f",
-"parsur.f", "percur.f", "pogrid.f", "polar.f", "profil.f", "regrid.f",
-"spalde.f", "spgrid.f", "sphere.f", "splder.f", "splev.f", "splint.f",
-"sproot.f", "surev.f", "surfit.f"]]
-fitpack = env.DistutilsStaticExtLibrary('fitpack', source = src)
-
-env.PrependUnique(LIBPATH = ['.'])
-
-# Build _fitpack
-env.NumpyPythonExtension('_fitpack', source = 'src/_fitpackmodule.c',
- LIBS="fitpack")
-
-# Build dfitpack
-env.NumpyPythonExtension('dfitpack', source = 'src/fitpack.pyf',
- LIBS="fitpack")
-
-# Build _interpolate
-env.NumpyPythonExtension('_interpolate', source = 'src/_interpolate.cpp',
- CXXFILESUFFIX = ".cpp")
-
-# Build interpnd
-env.NumpyPythonExtension('interpnd', source = 'interpnd.c')
View
2 scipy/interpolate/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
19 scipy/interpolate/setupscons.py
@@ -1,19 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('interpolate', parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
5 scipy/io/SConscript
@@ -1,5 +0,0 @@
-# Last Change: Wed Mar 05 03:00 PM 2008 J
-# vim:syntax=python
-from numscons import GetNumpyEnvironment
-
-env = GetNumpyEnvironment(ARGUMENTS)
View
2 scipy/io/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
14 scipy/io/harwell_boeing/setupscons.py
@@ -1,14 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('harwell_boeing',parent_package,top_path)
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
6 scipy/io/matlab/SConscript
@@ -1,6 +0,0 @@
-from numscons import GetNumpyEnvironment
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.NumpyPythonExtension('streams', source='streams.c')
-env.NumpyPythonExtension('mio_utils', source='mio_utils.c')
-env.NumpyPythonExtension('mio5_utils', source='mio5_utils.c')
View
2 scipy/io/matlab/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
15 scipy/io/matlab/setupscons.py
@@ -1,15 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='io',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('matlab', parent_package, top_path)
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
- config.add_data_dir('benchmarks')
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
20 scipy/io/setupscons.py
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('io', parent_package, top_path,
- setup_name='setupscons.py')
-
- config.add_sconscript('SConstruct')
-
- config.add_data_dir('tests')
- config.add_subpackage('matlab')
- config.add_subpackage('arff')
- config.add_subpackage('harwell_boeing')
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
81 scipy/lib/blas/SConscript
@@ -1,81 +0,0 @@
-# Last Change: Sat May 03 02:00 PM 2008 J
-# vim:syntax=python
-
-import os
-from os.path import join as pjoin, splitext
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckCBLAS, CheckF77BLAS,\
- IsVeclib, IsAccelerate, \
- IsATLAS, GetATLASVersion
-from numscons import write_info
-
-from scons_support import do_generate_fake_interface, generate_interface_emitter
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-
-#if os.name == 'nt':
-# # NT needs the pythonlib to run any code importing Python.h, including
-# # simple code using only typedef and so on, so we need it for configuration
-# # checks
-# env.AppendUnique(LIBPATH = [get_pythonlib_dir()])
-
-env['BUILDERS']['GenerateFakePyf'] = Builder(action = do_generate_fake_interface,
- emitter = generate_interface_emitter)
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckCBLAS' : CheckCBLAS,
- 'CheckBLAS' : CheckF77BLAS})
-
-#--------------
-# Checking Blas
-#--------------
-st = config.CheckBLAS(check_version = 1)
-if not st:
- raise RuntimeError("no blas found, necessary for linalg module")
-if IsATLAS(env, 'blas'):
- version = GetATLASVersion(env)
- env.Append(CPPDEFINES = [('ATLAS_INFO', '"\\"%s"\\"' % version)])
-else:
- env.Append(CPPDEFINES = [('NO_ATLAS_INFO', 1)])
-
-if config.CheckCBLAS():
- has_cblas = 1
-else:
- has_cblas = 0
-
-config.Finish()
-write_info(env)
-
-#==========
-# Build
-#==========
-
-# XXX: handle cblas wrapper for complex (check in numpy.scons or here ?)
-env.AppendUnique(F2PYOPTIONS = '--quiet')
-
-#------------
-# fblas
-#------------
-env.FromFTemplate('fblas.pyf', 'fblas.pyf.src')
-source = ['fblas.pyf']
-if IsVeclib(env, 'blas') or IsAccelerate(env, 'blas'):
- env.FromCTemplate('fblaswrap_veclib_c.c', 'fblaswrap_veclib_c.c.src')
- source.append('fblaswrap_veclib_c.c')
-else:
- env.FromFTemplate('fblaswrap.f', 'fblaswrap.f.src')
- source.append('fblaswrap.f')
-env.NumpyPythonExtension('fblas', source)
-
-#------------
-# cblas
-#------------
-source = ['cblas.pyf']
-if has_cblas:
- env.FromFTemplate('cblas.pyf', 'cblas.pyf.src')
-else:
- print env.GenerateFakePyf('cblas', 'cblas.pyf.src')
-env.NumpyPythonExtension('cblas', source)
View
2 scipy/lib/blas/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
18 scipy/lib/blas/setupscons.py
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- from numpy.distutils.system_info import get_info
-
- config = Configuration('blas',parent_package,top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
81 scipy/lib/lapack/SConscript
@@ -1,81 +0,0 @@
-# Last Change: Sat May 03 02:00 PM 2008 J
-# vim:syntax=python
-
-import os
-from os.path import join as pjoin, splitext
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77LAPACK,\
- CheckCLAPACK, \
- IsATLAS, GetATLASVersion, \
- CheckF77Clib
-from numscons import write_info
-
-from scons_support import do_generate_fake_interface, \
- generate_interface_emitter
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-#if os.name == 'nt':
-# # NT needs the pythonlib to run any code importing Python.h, including
-# # simple code using only typedef and so on, so we need it for configuration
-# # checks
-# env.AppendUnique(LIBPATH = [get_pythonlib_dir()])
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckCLAPACK' : CheckCLAPACK,
- 'CheckLAPACK' : CheckF77LAPACK,
- 'CheckF77Clib' : CheckF77Clib})
-
-#--------------
-# Checking Blas
-#--------------
-st = config.CheckLAPACK(check_version = 1)
-if not st:
- raise RuntimeError("no lapack found, necessary for lapack module")
-
-if IsATLAS(env, 'lapack'):
- version = GetATLASVersion(env)
- env.Append(CPPDEFINES = [('ATLAS_INFO', '"\\"%s"\\"' % version)])
-else:
- env.Append(CPPDEFINES = [('NO_ATLAS_INFO', 1)])
-
-if config.CheckCLAPACK():
- has_clapack = 1
-else:
- has_clapack = 0
-
-config.Finish()
-write_info(env)
-
-#==========
-# Build
-#==========
-env.AppendUnique(F2PYOPTIONS = '--quiet')
-
-env['BUILDERS']['GenerateFakePyf'] = Builder(action = do_generate_fake_interface,
- emitter = generate_interface_emitter)
-
-#------------
-# flapack
-#------------
-yop = env.FromFTemplate('flapack.pyf', 'flapack.pyf.src')
-env.NumpyPythonExtension('flapack', source = ['flapack.pyf'])
-
-#------------
-# clapack
-#------------
-if has_clapack:
- env.FromFTemplate('clapack.pyf', 'clapack.pyf.src')
-else:
- env.GenerateFakePyf('clapack', 'clapack.pyf.src')
-env.NumpyPythonExtension('clapack', source = 'clapack.pyf')
-
-#----------------
-# calc_lwork:
-#----------------
-calc_src = env.F2py(pjoin('calc_lworkmodule.c'),
- source = pjoin('calc_lwork.f'))
-env.NumpyPythonExtension('calc_lwork', source = calc_src + ['calc_lwork.f'])
View
2 scipy/lib/lapack/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
22 scipy/lib/lapack/setupscons.py
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-import os
-from glob import glob
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- from numpy.distutils.system_info import get_info
-
- config = Configuration('lapack',parent_package,top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
-
- setup(**configuration(top_path='').todict())
View
18 scipy/lib/setupscons.py
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('lib',parent_package,top_path,
- setup_name='setupscons.py')
- config.add_subpackage('blas')
- config.add_subpackage('lapack')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
-
- setup(**configuration(top_path='').todict())
View
129 scipy/linalg/SConscript
@@ -1,129 +0,0 @@
-# Last Change: Sat Nov 01 11:00 PM 2008 J
-# vim:syntax=python
-
-import os
-from os.path import join as pjoin, splitext
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckCBLAS, CheckF77BLAS, CheckF77LAPACK,\
- CheckCLAPACK, IsVeclib, IsAccelerate, \
- IsATLAS, GetATLASVersion, CheckF77Clib
-from numscons import write_info
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-
-# XXX: handle cblas wrapper for complex (check in numpy.scons or here ?)
-env.AppendUnique(F2PYOPTIONS = '--quiet')
-
-#if os.name == 'nt':
-# # NT needs the pythonlib to run any code importing Python.h, including
-# # simple code using only typedef and so on, so we need it for configuration
-# # checks
-# env.AppendUnique(LIBPATH = [get_pythonlib_dir()])
-
-fenv = env.Clone()
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckCBLAS' : CheckCBLAS,
- 'CheckCLAPACK' : CheckCLAPACK})
-
-#-------------------------
-# Checking cblas/clapack
-#-------------------------
-if config.CheckCBLAS():
- has_cblas = 1
-else:
- has_cblas = 0
-if has_cblas:
- if IsATLAS(env, 'cblas'):
- version = GetATLASVersion(env)
- env.Append(CPPDEFINES = [('ATLAS_INFO', '"\\"%s"\\"' % version)])
- else:
- env.Append(CPPDEFINES = [('NO_ATLAS_INFO', 1)])
-
-if config.CheckCLAPACK():
- has_clapack = 1
-else:
- has_clapack = 0
-
-config.Finish()
-write_info(env)
-
-#---------------------------
-# Checking F77 blas/lapack
-#---------------------------
-fconfig = fenv.NumpyConfigure(custom_tests = {'CheckBLAS' : CheckF77BLAS,
- 'CheckLAPACK' : CheckF77LAPACK,
- 'CheckF77Clib' : CheckF77Clib})
-
-if not fconfig.CheckF77Clib():
- raise RuntimeError("Could not check F/C runtime library for %s/%s, " \
- "contact the maintainer" % (fenv['CC'], fenv['F77']))
-
-st = fconfig.CheckBLAS(check_version = 1)
-if not st:
- raise RuntimeError("no blas found, necessary for linalg module")
-if IsATLAS(fenv, 'blas'):
- version = GetATLASVersion(fenv)
- env.Append(CPPDEFINES = [('ATLAS_INFO', '"\\"%s"\\"' % version)])
-else:
- env.Append(CPPDEFINES = [('NO_ATLAS_INFO', 1)])
-
-st = fconfig.CheckLAPACK()
-if not st:
- raise RuntimeError("no lapack found, necessary for linalg module")
-fconfig.Finish()
-write_info(fenv)
-
-
-#==========
-# Build
-#==========
-#------------
-# fblas
-#------------
-fenv.FromFTemplate('fblas.pyf', 'fblas.pyf.src')
-source = ['fblas.pyf']
-if IsVeclib(fenv, 'blas') or IsAccelerate(fenv, 'blas'):
- source.append(pjoin('src', 'fblaswrap_veclib_c.c'))
-else:
- source.append(pjoin('src', 'fblaswrap.f'))
-fenv.NumpyPythonExtension('fblas', source)
-
-#------------
-# cblas
-#------------
-if has_cblas:
- fenv.FromFTemplate('clapack.pyf', 'clapack.pyf.src')
- env.NumpyPythonExtension('cblas', source = 'clapack.pyf')
-
-#------------
-# flapack
-#------------
-fenv.FromFTemplate('flapack.pyf', 'flapack.pyf.src')
-fenv.NumpyPythonExtension('flapack', 'flapack.pyf')
-
-#------------
-# clapack
-#------------
-if has_clapack:
- fenv.FromFTemplate('clapack.pyf', 'clapack.pyf.src')
- env.NumpyPythonExtension('clapack', source = 'clapack.pyf')
-
-#----------------
-# _flinalg
-#----------------
-flinalg_fsrc = [pjoin('src', i) for i in ['det.f', 'lu.f']]
-flinalg_src = fenv.F2py(pjoin('src', '_flinalgmodule.c'), flinalg_fsrc)
-
-fenv.NumpyPythonExtension('_flinalg', source = flinalg_src + flinalg_fsrc)
-
-#----------------
-# calc_lwork:
-#----------------
-calc_fsrc = [pjoin('src', 'calc_lwork.f')]
-calc_src = env.F2py(pjoin('src', 'calc_lworkmodule.c'), calc_fsrc)
-fenv.NumpyPythonExtension('calc_lwork', calc_src + calc_fsrc)
View
2 scipy/linalg/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
20 scipy/linalg/setupscons.py
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('linalg',parent_package,top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- from .linalg_version import linalg_version
-
- setup(version=linalg_version,
- **configuration(top_path='').todict())
View
13 scipy/misc/setupscons.py
@@ -1,13 +0,0 @@
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('misc',parent_package,top_path)
- config.add_data_files('lena.dat')
- config.add_data_dir('tests')
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
12 scipy/ndimage/SConscript
@@ -1,12 +0,0 @@
-# Last Change: Fri Oct 10 03:00 PM 2008 J
-from os.path import join
-
-from numscons import GetNumpyEnvironment
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-env.AppendUnique(CPPPATH = 'src')
-
-ndimage_src = ["nd_image.c", "ni_filters.c", "ni_fourier.c", "ni_interpolation.c",
- "ni_measure.c", "ni_morphology.c", "ni_support.c"]
-env.NumpyPythonExtension('_nd_image', source = [join('src', i) for i in ndimage_src])
View
2 scipy/ndimage/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
18 scipy/ndimage/setupscons.py
@@ -1,18 +0,0 @@
-from __future__ import division, print_function, absolute_import
-
-from numpy.distutils.core import setup
-from numpy.distutils.misc_util import Configuration
-from numpy import get_include
-
-
-def configuration(parent_package='', top_path=None):
-
- config = Configuration('ndimage', parent_package, top_path)
-
- config.add_sconscript("SConstruct")
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- setup(**configuration(top_path='').todict())
View
57 scipy/odr/SConscript
@@ -1,57 +0,0 @@
-# Last Change: Thu Jun 12 07:00 PM 2008 J
-# vim:syntax=python
-
-import os
-from os.path import join as pjoin, splitext
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77BLAS, CheckF77Clib
-
-from numscons import write_info
-
-env = GetNumpyEnvironment(ARGUMENTS)
-#if os.name == 'nt':
-# # NT needs the pythonlib to run any code importing Python.h, including
-# # simple code using only typedef and so on, so we need it for configuration
-# # checks
-# env.AppendUnique(LIBPATH = [get_pythonlib_dir()])
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckBLAS' : CheckF77BLAS})
-
-if not config.CheckBLAS():
- raise RuntimeError("Could not check F/C runtime library for %s/%s, " \
- "contact the maintainer" % (env['CC'], env['F77']))
-
-#--------------
-# Checking Blas
-#--------------
-st = config.CheckBLAS()
-if not st:
- has_blas = 0
-else:
- has_blas = 1
-
-config.Finish()
-write_info(env)
-
-#==========
-# Build
-#==========
-
-# odr lib
-libodr_src = [pjoin('odrpack', i) for i in ['d_odr.f', 'd_mprec.f', 'dlunoc.f']]
-if has_blas:
- libodr_src.append(pjoin('odrpack', 'd_lpk.f'))
-else:
- libodr_src.append(pjoin('odrpack', 'd_lpkbls.f'))
-
-env.DistutilsStaticExtLibrary('odrpack', source = libodr_src)
-
-env.PrependUnique(LIBS = 'odrpack')
-env.PrependUnique(LIBPATH = '.')
-
-# odr pyextension
-env.NumpyPythonExtension('__odrpack', '__odrpack.c')
View
2 scipy/odr/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
19 scipy/odr/setupscons.py
@@ -1,19 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-
-def configuration(parent_package='', top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('odr', parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
88 scipy/optimize/SConscript
@@ -1,88 +0,0 @@
-# Last Change: Sun Jan 04 07:00 PM 2009 J
-# vim:syntax=python
-
-import os
-from os.path import join as pjoin, splitext
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77LAPACK, CheckF77Clib
-
-from numscons import write_info
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-env.Append(CPPPATH = ['Zeros'])
-#if os.name == 'nt':
-# # NT needs the pythonlib to run any code importing Python.h, including
-# # simple code using only typedef and so on, so we need it for configuration
-# # checks
-# env.AppendUnique(LIBPATH = [get_pythonlib_dir()])
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckLAPACK' : CheckF77LAPACK})
-
-#-----------------
-# Checking Lapack
-#-----------------
-st = config.CheckLAPACK()
-if not st:
- has_lapack = 0
-else:
- has_lapack = 1
-
-config.Finish()
-write_info(env)
-
-#==========
-# Build
-#==========
-
-# minpack lib
-minpack_src = [pjoin("minpack", s) for s in ["chkder.f", "dogleg.f",
-"dpmpar.f", "enorm.f", "fdjac1.f", "fdjac2.f", "hybrd.f", "hybrd1.f",
-"hybrj.f", "hybrj1.f", "lmder.f", "lmder1.f", "lmdif.f", "lmdif1.f", "lmpar.f",
-"lmstr.f", "lmstr1.f", "qform.f", "qrfac.f", "qrsolv.f",
-"r1mpyq.f", "r1updt.f", "rwupdt.f"]]
-env.DistutilsStaticExtLibrary('minpack', source = minpack_src)
-
-# rootfind lib
-rootfind_src = [pjoin("Zeros", s) for s in ["bisect.c", "brenth.c",
-"brentq.c", "ridder.c"]]
-env.DistutilsStaticExtLibrary('rootfind', source = rootfind_src)
-
-env.AppendUnique(LIBS = ['minpack', 'rootfind'])
-env.AppendUnique(LIBPATH = '.')
-
-# _minpack pyextension
-env.NumpyPythonExtension('_minpack', '_minpackmodule.c')
-
-# _zeros pyextension
-env.NumpyPythonExtension('_zeros', 'zeros.c')
-
-# _lbfgsb pyextension
-src = [pjoin('lbfgsb', i) for i in ['lbfgsb.pyf', 'lbfgsb.f',
- 'linpack.f', 'timer.f']]
-env.NumpyPythonExtension('_lbfgsb', source = src)
-
-# _cobyla pyextension
-src = [pjoin('cobyla', i) for i in ['cobyla2.f', 'trstlp.f', 'cobyla.pyf']]
-env.NumpyPythonExtension('_cobyla', source = src)
-
-# _minpack2 pyextension
-src = [pjoin('minpack2', i) for i in ['dcsrch.f', 'dcstep.f', 'minpack2.pyf']]
-env.NumpyPythonExtension('minpack2', source = src)
-
-# _nnls pyextension
-src = [pjoin('nnls', i) for i in ['nnls.f', 'nnls.pyf']]
-env.NumpyPythonExtension('_nnls', source = src)
-
-# moduleTNC pyextension
-env.NumpyPythonExtension('moduleTNC',
- source = [pjoin('tnc', i) for i in \
- ['moduleTNC.c', 'tnc.c']])
-
-# _slsqp pyextension
-src = [pjoin('slsqp', i) for i in ['slsqp_optmz.f', 'slsqp.pyf']]
-env.NumpyPythonExtension('_slsqp', source = src)
View
2 scipy/optimize/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
16 scipy/optimize/setupscons.py
@@ -1,16 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('optimize',parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
46 scipy/setupscons.py
@@ -1,46 +0,0 @@
-from __future__ import division, print_function, absolute_import
-
-from os.path import join as pjoin
-
-
-def configuration(parent_package='', top_path=None, setup_name='setupscons.py'):
- from numpy.distutils.misc_util import Configuration
- from numpy.distutils.misc_util import scons_generate_config_py
-
- pkgname = 'scipy'
- config = Configuration(pkgname, parent_package, top_path,
- setup_name='setupscons.py')
- config.add_subpackage('cluster')
- config.add_subpackage('constants')
- config.add_subpackage('fftpack')
- config.add_subpackage('integrate')
- config.add_subpackage('interpolate')
- config.add_subpackage('io')
- config.add_subpackage('lib')
- config.add_subpackage('linalg')
- config.add_subpackage('misc')
- config.add_subpackage('odr')
- config.add_subpackage('optimize')
- config.add_subpackage('signal')
- config.add_subpackage('sparse')
- config.add_subpackage('spatial')
- config.add_subpackage('special')
- config.add_subpackage('stats')
- config.add_subpackage('ndimage')
- config.add_subpackage('weave')
-
- def add_config(*args, **kw):
- # Generate __config__, handle inplace issues.
- if kw['scons_cmd'].inplace:
- target = pjoin(kw['pkg_name'], '__config__.py')
- else:
- target = pjoin(kw['scons_cmd'].build_lib, kw['pkg_name'],
- '__config__.py')
- scons_generate_config_py(target)
- config.add_sconscript(None, post_hook=add_config)
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
21 scipy/signal/SConscript
@@ -1,21 +0,0 @@
-# Last Change: Mon Apr 20 04:00 PM 2009 J
-# vim:syntax=python
-from os.path import join
-
-from numscons import GetNumpyEnvironment
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-src = env.FromCTemplate("lfilter.c.src")
-src += env.FromCTemplate("correlate_nd.c.src")
-env.NumpyPythonExtension('sigtools',
- source = src + ['sigtoolsmodule.c',\
- 'firfilter.c', \
- 'medianfilter.c'])
-
-env.NumpyPythonExtension('_spectral', source='_spectral.c')
-
-env.NumpyPythonExtension('spline',
- source = ['splinemodule.c', 'S_bspline_util.c',
- 'D_bspline_util.c', 'C_bspline_util.c',
- 'Z_bspline_util.c','bspline_util.c'])
View
2 scipy/signal/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
18 scipy/signal/setupscons.py
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='', top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('signal', parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
11 scipy/sparse/csgraph/SConscript
@@ -1,11 +0,0 @@
-# vim:syntax=python
-from os.path import join as pjoin
-
-from numscons import GetNumpyEnvironment, CheckF77Clib
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-env.NumpyPythonExtension('_shortest_path', source = ['_shortest_path.c'])
-env.NumpyPythonExtension('_traversal', source = ['_traversal.c'])
-env.NumpyPythonExtension('_min_spanning_tree', source = ['_min_spanning_tree.c'])
-env.NumpyPythonExtension('_tools', source = ['_tools.c'])
View
2 scipy/sparse/csgraph/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
18 scipy/sparse/csgraph/setupscons.py
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('csgraph', parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
51 scipy/sparse/linalg/dsolve/SConscript
@@ -1,51 +0,0 @@
-import os
-import glob
-import sys
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77LAPACK
-from numscons import write_info
-from numscons.core.misc import built_with_mstools, built_with_gnu_f77
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckLapack' : CheckF77LAPACK})
-
-#-----------------
-# Checking Lapack
-#-----------------
-st = config.CheckLapack()
-if not st:
- raise RuntimeError("no lapack found, necessary for dsolve module")
-
-config.Finish()
-write_info(env)
-
-# Build superlu lib
-superlu_env = env.Clone()
-superlu_def = []
-if sys.platform == 'win32':
- superlu_def.append((('NO_TIMER'), 1))
-superlu_def.append((('USE_VENDOR_BLAS'), 2))
-superlu_env.Append(CPPDEFINES=superlu_def)
-superlu_env.Append(CPPPATH=[os.path.join('SuperLU', 'SRC')])
-
-superlu_src = env.Glob(os.path.join('SuperLU', 'SRC', "*.c"))
-
-# XXX: we should detect whether lsame is already defined in BLAS/LAPACK. Here,
-# when using MSVC + MKL, lsame is already in MKL
-if not (built_with_mstools(env) and (not built_with_gnu_f77(env))):
- superlu_src.append(os.path.join("SuperLU", "SRC", "lsame.c"))
-superlu = superlu_env.DistutilsStaticExtLibrary('superlu_src', source=superlu_src)
-
-# Build python extensions
-pyenv = env.Clone()
-pyenv.Append(CPPPATH=[os.path.join('SuperLU', 'SRC')])
-pyenv.Prepend(LIBPATH=["."])
-pyenv.Prepend(LIBS=["superlu_src"])
-common_src = ['_superlu_utils.c', '_superluobject.c']
-
-pyenv.NumpyPythonExtension('_superlu', source=common_src + ['_superlumodule.c'])
View
2 scipy/sparse/linalg/dsolve/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
23 scipy/sparse/linalg/dsolve/setupscons.py
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-import sys
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- from numpy.distutils.system_info import get_info
-
- config = Configuration('dsolve',parent_package,top_path,
- setup_name='setupscons.py')
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
- config.add_subpackage('umfpack')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
32 scipy/sparse/linalg/dsolve/umfpack/SConscript
@@ -1,32 +0,0 @@
-from os.path import join as pjoin
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77BLAS, CheckF77Clib, NumpyCheckLibAndHeader
-from numscons import write_info
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests =
- {'CheckBLAS' : CheckF77BLAS,
- 'CheckF77Clib' : CheckF77Clib,
- 'NumpyCheckLibAndHeader' : NumpyCheckLibAndHeader})
-
-#-----------------
-# Checking Lapack
-#-----------------
-st = config.CheckBLAS()
-if not st:
- raise RuntimeError("no blas found, necessary for umfpack module")
-
-has_umfpack = config.NumpyCheckLibAndHeader(
- 'umfpack', None, 'umfpack.h', section = 'umfpack', autoadd = 1)
-config.Finish()
-write_info(env)
-
-if has_umfpack:
- env.Append(SWIGFLAGS = '-python')
- env.Append(SWIGFLAGS = '$_CPPINCFLAGS')
- env.NumpyPythonExtension('__umfpack', source = 'umfpack.i')
View
2 scipy/sparse/linalg/dsolve/umfpack/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
35 scipy/sparse/linalg/dsolve/umfpack/setupscons.py
@@ -1,35 +0,0 @@
-#!/usr/bin/env python
-# 05.12.2005, c
-# last change: 27.03.2006
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('umfpack', parent_package, top_path)
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
-# umf_info = get_info( 'umfpack', notfound_action = 1 )
-#
-# umfpack_i_file = config.paths('umfpack.i')[0]
-# def umfpack_i(ext, build_dir):
-# if umf_info:
-# return umfpack_i_file
-#
-# blas_info = get_info('blas_opt')
-# build_info = {}
-# dict_append(build_info, **umf_info)
-# dict_append(build_info, **blas_info)
-#
-# config.add_extension( '__umfpack',
-# sources = [umfpack_i],
-# depends = ['umfpack.i'],
-# **build_info)
-#
- return config
-
-if __name__ == "__main__":
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
65 scipy/sparse/linalg/eigen/arpack/SConscript
@@ -1,65 +0,0 @@
-# vim:syntax=python
-from os.path import join as pjoin
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77LAPACK, CheckF77Clib
-from numscons import write_info, IsAccelerate, IsVeclib
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckLAPACK' : CheckF77LAPACK,
- 'CheckF77Clib' : CheckF77Clib})
-
-env.Tool('f2py')
-#-----------------
-# Checking Lapack
-#-----------------
-st = config.CheckF77Clib()
-st = config.CheckLAPACK(autoadd = 1)
-if not st:
- raise RuntimeError("no lapack found, necessary for arpack module")
-
-use_c_calling = IsAccelerate(env, "lapack") or IsVeclib(env, "lapack")
-config.Finish()
-write_info(env)
-
-# Build arpack
-arpack_src = [pjoin("ARPACK", "SRC", s) for s in [ "cgetv0.f", "cnaitr.f",
-"cnapps.f", "cnaup2.f", "cnaupd.f", "cneigh.f", "cneupd.f", "cngets.f",
-"csortc.f", "cstatn.f", "dgetv0.f", "dlaqrb.f", "dnaitr.f", "dnapps.f",
-"dnaup2.f", "dnaupd.f", "dnconv.f", "dneigh.f", "dneupd.f", "dngets.f",
-"dsaitr.f", "dsapps.f", "dsaup2.f", "dsaupd.f", "dsconv.f", "dseigt.f",
-"dsesrt.f", "dseupd.f", "dsgets.f", "dsortc.f", "dsortr.f", "dstatn.f",
-"dstats.f", "dstqrb.f", "sgetv0.f", "slaqrb.f", "snaitr.f", "snapps.f",
-"snaup2.f", "snaupd.f", "snconv.f", "sneigh.f", "sneupd.f", "sngets.f",
-"ssaitr.f", "ssapps.f", "ssaup2.f", "ssaupd.f", "ssconv.f", "sseigt.f",
-"ssesrt.f", "sseupd.f", "ssgets.f", "ssortc.f", "ssortr.f", "sstatn.f",
-"sstats.f", "sstqrb.f", "zgetv0.f", "znaitr.f", "znapps.f", "znaup2.f",
-"znaupd.f", "zneigh.f", "zneupd.f", "zngets.f", "zsortc.f", "zstatn.f"]]
-
-arpack_src += [pjoin('ARPACK', 'UTIL', s) for s in [ "cmout.f", "cvout.f",
-"dmout.f", "dvout.f", "icnteq.f", "icopy.f", "iset.f", "iswap.f", "ivout.f",
-"second.f", "smout.f", "svout.f", "zmout.f", "zvout.f"]]
-
-if use_c_calling:
- arpack_src += [pjoin('ARPACK', 'FWRAPPERS', 'veclib_cabi_f.f'),
- pjoin('ARPACK', 'FWRAPPERS', 'veclib_cabi_c.c')]
-else:
- arpack_src += [pjoin('ARPACK', 'FWRAPPERS', 'dummy.f')]
-arpack_src += [pjoin('ARPACK', 'LAPACK', s) for s in [ "clahqr.f", "dlahqr.f",
-"slahqr.f", "zlahqr.f"]]
-
-src = [str(s) for s in arpack_src]
-
-env.AppendUnique(CPPPATH = [pjoin('ARPACK', 'SRC')])
-env.AppendUnique(F77PATH = [pjoin('ARPACK', 'SRC')])
-env.AppendUnique(LIBPATH = ['.'])
-arpack_lib = env.DistutilsStaticExtLibrary('arpack', source = src)
-
-# Build _arpack extension
-env.FromFTemplate('arpack.pyf', 'arpack.pyf.src')
-env.Prepend(LIBS = 'arpack')
-env.NumpyPythonExtension('_arpack', 'arpack.pyf')
View
2 scipy/sparse/linalg/eigen/arpack/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
39 scipy/sparse/linalg/eigen/arpack/setupscons.py
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('arpack',parent_package,top_path)
-#
-# lapack_opt = get_info('lapack_opt')
-#
-# if not lapack_opt:
-# raise NotFoundError,'no lapack/blas resources found'
-#
-# config = Configuration('arpack', parent_package, top_path)
-#
-# arpack_sources=[join('ARPACK','SRC', '*.f')]
-# arpack_sources.extend([join('ARPACK','UTIL', '*.f')])
-# arpack_sources.extend([join('ARPACK','LAPACK', '*.f')])
-#
-# config.add_library('arpack', sources=arpack_sources,
-# include_dirs=[join('ARPACK', 'SRC')])
-#
-#
-# config.add_extension('_arpack',
-# sources='arpack.pyf.src',
-# libraries=['arpack'],
-# extra_info = lapack_opt
-# )
-#
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
16 scipy/sparse/linalg/eigen/lobpcg/setupscons.py
@@ -1,16 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- from numpy.distutils.system_info import get_info
-
- config = Configuration('lobpcg',parent_package,top_path)
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
17 scipy/sparse/linalg/eigen/setupscons.py
@@ -1,17 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('eigen',parent_package,top_path, setup_name='setupscons.py')
-
- config.add_subpackage(('arpack'))
- config.add_subpackage(('lobpcg'))
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
73 scipy/sparse/linalg/isolve/SConscript
@@ -1,73 +0,0 @@
-# Last Change: Sat May 03 02:00 PM 2008 J
-# vim:syntax=python
-
-from os.path import join as pjoin, splitext
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77LAPACK
-
-from numscons import write_info, IsAccelerate, IsVeclib
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-#if os.name == 'nt':
-# # NT needs the pythonlib to run any code importing Python.h, including
-# # simple code using only typedef and so on, so we need it for configuration
-# # checks
-# env.AppendUnique(LIBPATH = [get_pythonlib_dir()])
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckLAPACK' : CheckF77LAPACK})
-
-#-----------------
-# Checking Lapack
-#-----------------
-st = config.CheckLAPACK()
-if not st:
- raise RuntimeError("no lapack found, necessary for isolve module")
-
-config.Finish()
-write_info(env)
-
-#--------------------
-# iterative methods
-#--------------------
-methods = ['BiCGREVCOM.f.src',
- 'BiCGSTABREVCOM.f.src',
- 'CGREVCOM.f.src',
- 'CGSREVCOM.f.src',
-# 'ChebyREVCOM.f.src',
- 'GMRESREVCOM.f.src',
-# 'JacobiREVCOM.f.src',
- 'QMRREVCOM.f.src',
-# 'SORREVCOM.f.src'
- ]
-Util = ['STOPTEST2.f.src','getbreak.f.src']
-raw_sources = methods + Util + ['_iterative.pyf.src']
-
-sources = []
-for method in raw_sources:
- target = splitext(method)[0]
- res = env.FromFTemplate(target, pjoin('iterative', method))
- sources.append(res[0])
-
-#--------------------------------------------------
-# BLAS wrapper to fix ABI incompatibilities on OS X
-# -------------------------------------------------
-use_c_calling = IsAccelerate(env, "lapack") or IsVeclib(env, "lapack")
-
-if use_c_calling:
- blas_wrapper = ['veclib_cabi_c.c', 'veclib_cabi_f.f']
-else:
- blas_wrapper = ['dummy.f']
-
-blas_wrapper = [pjoin('iterative', 'FWRAPPERS', wrapper) \
- for wrapper in blas_wrapper]
-
-env.AppendUnique(LIBPATH = ['.'])
-veclibwrap_lib = env.DistutilsStaticExtLibrary('_veclibwrap', source=blas_wrapper)
-env.Prepend(LIBS='_veclibwrap')
-
-env.NumpyPythonExtension('_iterative', source=sources)
View
2 scipy/sparse/linalg/isolve/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
18 scipy/sparse/linalg/isolve/setupscons.py
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('isolve',parent_package,top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
-
- setup(**configuration(top_path='').todict())
View
21 scipy/sparse/linalg/setupscons.py
@@ -1,21 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('linalg',parent_package,top_path,
- setup_name='setupscons.py')
-
- config.add_subpackage(('isolve'))
- config.add_subpackage(('dsolve'))
- config.add_subpackage(('eigen'))
-
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
24 scipy/sparse/setupscons.py
@@ -1,24 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-import sys
-
-
-def configuration(parent_package='',top_path=None):
- import numpy
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('sparse',parent_package,top_path,
- setup_name='setupscons.py')
-
- config.add_data_dir('tests')
- config.add_subpackage('linalg')
- config.add_subpackage('sparsetools')
- config.add_subpackage('csgraph')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
10 scipy/sparse/sparsetools/SConscript
@@ -1,10 +0,0 @@
-# Last Change: Wed Mar 05 09:00 PM 2008 J
-# vim:syntax=python
-from numscons import GetNumpyEnvironment
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.PrependUnique(CPPDEFINES = '__STDC_FORMAT_MACROS')
-
-for fmt in ['csr','csc','coo','bsr','dia', 'csgraph']:
- sources = [ fmt + '_wrap.cxx' ]
- env.NumpyPythonExtension('_%s' % fmt, source = sources)
View
2 scipy/sparse/sparsetools/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
22 scipy/sparse/sparsetools/setupscons.py
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-import sys
-
-
-def configuration(parent_package='',top_path=None):
- import numpy
- from numpy.distutils.misc_util import Configuration
-
- config = Configuration('sparsetools',parent_package,top_path,
- setup_name='setupscons.py')
-
- config.add_sconscript('SConstruct')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
52 scipy/spatial/SConscript
@@ -1,52 +0,0 @@
-# Last Change: Mon Nov 03 06:00 PM 2008 J
-# vim:syntax=python
-from os.path import join
-from numpy.distutils.misc_util import get_numpy_include_dirs, get_pkg_info
-from distutils.sysconfig import get_python_inc
-from numscons import GetNumpyEnvironment, CheckF77LAPACK, CheckF77Clib
-from numscons import write_info
-inc_dirs = [get_python_inc()]
-if inc_dirs[0] != get_python_inc(plat_specific=1):
- inc_dirs.append(get_python_inc(plat_specific=1))
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.PrependUnique(CPPPATH=[get_numpy_include_dirs(), inc_dirs,
- env["PYEXTCPPPATH"]])
-
-#=======================
-# Starting Configuration
-#=======================
-config = env.NumpyConfigure(custom_tests = {'CheckLAPACK' : CheckF77LAPACK})
-
-#-----------------
-# Checking Lapack
-#-----------------
-st = config.CheckLAPACK()
-if not st:
- has_lapack = 0
-else:
- has_lapack = 1
-
-config.Finish()
-write_info(env)
-
-
-#==========
-# Build
-#==========
-
-env.NumpyPythonExtension('ckdtree', source = ['ckdtree.c'])
-
-env.NumpyPythonExtension('_distance_wrap',
- source = [join('src', 'distance_wrap.c'),
- join('src', 'distance.c')])
-
-# Build qhull
-src = [join('qhull', 'src', s) for s in [
- 'geom2.c', 'geom.c', 'global.c', 'io.c', 'libqhull.c',
- 'mem.c', 'merge.c', 'poly2.c', 'poly.c', 'qset.c',
- 'random.c', 'rboxlib.c', 'stat.c', 'user.c', 'usermem.c',
- 'userprintf.c']]
-
-env.NumpyPythonExtension('qhull', source = ['qhull.c'] + src,
- CDEFINES={'qh_QHpointer': '1'})
View
2 scipy/spatial/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
26 scipy/spatial/setupscons.py
@@ -1,26 +0,0 @@
-#!/usr/bin/env python
-
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-
-def configuration(parent_package='', top_path=None):
- from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
- config = Configuration('spatial', parent_package, top_path)
-
- config.add_data_dir('tests')
- config.add_sconscript('SConstruct')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(maintainer="SciPy Developers",
- author="Anne Archibald",
- maintainer_email="scipy-dev@scipy.org",
- description="Spatial algorithms and data structures",
- url="http://www.scipy.org",
- license="SciPy License (BSD Style)",
- **configuration(top_path='').todict()
- )
View
112 scipy/special/SConscript
@@ -1,112 +0,0 @@
-# vim:syntax=python
-from os.path import join as pjoin, dirname as pdirname, \
- basename as pbasename, abspath as pabspath
-import sys
-from numpy.distutils.misc_util import get_numpy_include_dirs, get_pkg_info
-
-from numscons import GetNumpyEnvironment
-from numscons import CheckF77Clib
-from SCons.Builder import Builder
-from numscons.numdist import process_c_str as process_str
-
-
-env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('f2py')
-
-
-#---------------------------
-# Builder for generated code
-#---------------------------
-# Taken from numpy.core.scons_support
-# Builder is added where needed (log
-def split_ext(string):
- sp = string.rsplit( '.', 1)
- if len(sp) == 1:
- return (sp[0], '')
- else:
- return sp
-
-def do_generate_from_template(targetfile, sourcefile, env):
- t = open(targetfile, 'w')
- s = open(sourcefile, 'r')
- allstr = s.read()
- s.close()
- writestr = process_str(allstr)
- t.write(writestr)
- t.close()
- return 0
-
-def generate_from_template(target, source, env):
- for t, s in zip(target, source):
- do_generate_from_template(str(t), str(s), env)
-
-def generate_from_template_emitter(target, source, env):
- base, ext = split_ext(pbasename(str(source[0])))
- t = pjoin(pdirname(str(target[0])), base)
- return ([t], source)
-
-template_bld = Builder(action = Action(generate_from_template, '$TEMPLATECOMSTR'),
- emitter = generate_from_template_emitter)
-env.Append(BUILDERS = {'GenerateFromTemplate' : template_bld})
-
-
-if sys.platform=='win32':
-# define_macros.append(('NOINFINITIES',None))
-# define_macros.append(('NONANS',None))
- env.PrependUnique(CPPDEFINES = '_USE_MATH_DEFINES')
-
-config = env.NumpyConfigure(custom_tests = {'CheckF77Clib' : CheckF77Clib})
-if not config.CheckF77Clib():
- raise RuntimeError("Could not get C/F77 runtime information")
-config.CheckF77Mangling()
-config.Finish()
-
-# Note, __file__ undefined, therefore use abspath('.')
-env.PrependUnique(CPPPATH=[get_numpy_include_dirs(), env["PYEXTCPPPATH"],
- pabspath('.')])
-def build_lib(name, ext, libname = None):
- """ext should be .f or .c"""
- if not libname:
- libname = name
- src = env.Glob(pjoin(name, '*%s' % ext))
- assert len(src) > 0
- env.DistutilsStaticExtLibrary(libname, source = src)
-
-# C libraries
-build_lib('c_misc', '.c', 'sc_c_misc')
-build_lib('cephes', '.c', 'sc_cephes')
-
-# F libraries
-# XXX: handle no opt flags for mach
-build_lib('mach', '.f', 'sc_mach')
-build_lib('amos', '.f', 'sc_amos')
-build_lib('cdflib', '.f', 'sc_cdf')
-build_lib('specfun', '.f', 'sc_specfunlib')
-
-# Note: cflags only passed to C but not to C++ compiler. Therefore add npymath
-# to _ufuncs_cxx
-math_info = get_pkg_info("npymath")
-env.MergeFlags(math_info.cflags())
-env.MergeFlags(math_info.libs())
-env.PrependUnique(LIBPATH = ['.'])
-
-# Ufuncs extension
-src = ['_ufuncs.c', 'amos_wrappers.c', 'cdf_wrappers.c', 'specfun_wrappers.c',
- 'sf_error.c']
-src_logit = env.GenerateFromTemplate('_logit.c.src')
-src.extend(src_logit)
-
-src_cxx = ['_ufuncs_cxx.cxx', 'sf_error.c', '_faddeeva.cxx', 'Faddeeva.cc']
-
-
-env.Prepend(LIBS = ['sc_amos', 'sc_c_misc', 'sc_cephes', 'sc_mach',
- 'sc_cdf', 'sc_specfunlib'])
-env.NumpyPythonExtension('_ufuncs', source = src)
-
-env.NumpyPythonExtension('_ufuncs_cxx', source = src_cxx,
- LIBS = ['sc_cephes', 'npymath'])
-
-# Specfun extension
-env.Prepend(LIBS = ['sc_specfunlib'])
-env.NumpyPythonExtension('specfun', source = 'specfun.pyf',
- F2PYOPTIONS = ["--no-wrap-functions"])
View
2 scipy/special/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
22 scipy/special/setupscons.py
@@ -1,22 +0,0 @@
-#!/usr/bin/env python
-
-from __future__ import division, print_function, absolute_import
-
-import os
-import sys
-from os.path import join
-from distutils.sysconfig import get_python_inc
-
-
-def configuration(parent_package='',top_path=None):
- from numpy.distutils.misc_util import Configuration
- config = Configuration('special', parent_package, top_path)
-
- config.add_sconscript('SConstruct')
- config.add_data_dir('tests')
-
- return config
-
-if __name__ == '__main__':
- from numpy.distutils.core import setup
- setup(**configuration(top_path='').todict())
View
39 scipy/stats/SConscript
@@ -1,39 +0,0 @@
-# Last Change: Sun Nov 02 06:00 PM 2008 J
-# vim:syntax=python
-from os.path import join as pjoin
-
-from numscons import GetNumpyEnvironment, CheckF77Clib
-
-env = GetNumpyEnvironment(ARGUMENTS)
-
-t = env.Tool('f2py')
-
-config = env.NumpyConfigure(custom_tests = {'CheckF77Clib' : CheckF77Clib})
-if not config.CheckF77Clib():
- raise RuntimeError("Could not get C/F77 runtime information")
-config.CheckF77Mangling()
-config.Finish()
-
-# Statlib library
-src = [pjoin("statlib", s) for s in [ "ansari.f", "spearman.f", "swilk.f"]]
-env.DistutilsStaticExtLibrary('statlibimp', source = src)
-
-env.AppendUnique(LIBPATH = '.')
-
-# Statlib extension
-env.NumpyPythonExtension('statlib', source = 'statlib.pyf',
- F2PYOPTIONS = ["--no-wrap-functions"],
- LIBS = 'statlibimp')
-
-# futil extension
-futil_src = env.F2py(pjoin('futilmodule.c'), pjoin('futil.f'))
-env.NumpyPythonExtension('futil', source = futil_src + ['futil.f'])
-
-# mvn extension
-env.NumpyPythonExtension('mvn', source = ['mvn.pyf', 'mvndst.f'])
-
-# vonmises_cython extension
-env.NumpyPythonExtension('vonmises_cython', source = ['vonmises_cython.c'])
-
-# _rank extension
-env.NumpyPythonExtension('_rank', source = ['_rank.c'])
View
2 scipy/stats/SConstruct
@@ -1,2 +0,0 @@
-from numscons import GetInitEnvironment
-GetInitEnvironment(ARGUMENTS).DistutilsSConscript('SConscript')
View
18 scipy/stats/setupscons.py
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-from __future__ import division, print_function, absolute_import
-
-from os.path import join
-
-