Permalink
Browse files

This commit was manufactured by cvs2svn to create tag

'release_0_2_0'.
  • Loading branch information...
1 parent f2e5fb8 commit e8c50dc6676e380e814c77927445ab3594382bc4 nobody committed Jan 5, 2002
Showing with 0 additions and 75,312 deletions.
  1. +0 −7 scipy_distutils/__init__.py
  2. +0 −4 scipy_distutils/__version__.py
  3. +0 −29 scipy_distutils/command/__init__.py
  4. +0 −17 scipy_distutils/command/build.py
  5. +0 −256 scipy_distutils/command/build_clib.py
  6. +0 −60 scipy_distutils/command/build_ext.py
  7. +0 −840 scipy_distutils/command/build_flib.py
  8. +0 −25 scipy_distutils/command/build_py.py
  9. +0 −172 scipy_distutils/command/cpuinfo.py
  10. +0 −54 scipy_distutils/command/install.py
  11. +0 −14 scipy_distutils/command/install_data.py
  12. +0 −20 scipy_distutils/command/install_headers.py
  13. +0 −105 scipy_distutils/command/sdist.py
  14. +0 −41 scipy_distutils/core.py
  15. +0 −96 scipy_distutils/dist.py
  16. +0 −18 scipy_distutils/fftw_info.py
  17. +0 −103 scipy_distutils/mingw32_support.py
  18. +0 −197 scipy_distutils/misc_util.py
  19. +0 −34 scipy_distutils/setup.py
  20. +0 −17 scipy_distutils/setup_scipy_distutils.py
  21. +0 −1 scipy_test/__init__.py
  22. +0 −273 scipy_test/scipy_test.py
  23. +0 −5 scipy_test/setup.py
  24. +0 −39 scipy_test/setup_scipy_test.py
  25. +0 −403 weave/blitz-20001213/blitz/applics.h
  26. +0 −2,495 weave/blitz-20001213/blitz/array.h
  27. +0 −39 weave/blitz-20001213/blitz/array/asexpr.h
  28. +0 −159 weave/blitz-20001213/blitz/array/cartesian.h
  29. +0 −126 weave/blitz-20001213/blitz/array/cgsolve.h
  30. +0 −32 weave/blitz-20001213/blitz/array/complex.cc
  31. +0 −40 weave/blitz-20001213/blitz/array/convolve.cc
  32. +0 −17 weave/blitz-20001213/blitz/array/convolve.h
  33. +0 −54 weave/blitz-20001213/blitz/array/cycle.cc
  34. +0 −89 weave/blitz-20001213/blitz/array/domain.h
  35. +0 −334 weave/blitz-20001213/blitz/array/et.h
  36. +0 −1,237 weave/blitz-20001213/blitz/array/eval.cc
  37. +0 −725 weave/blitz-20001213/blitz/array/expr.h
  38. +0 −297 weave/blitz-20001213/blitz/array/fastiter.h
  39. +0 −81 weave/blitz-20001213/blitz/array/geometry.h
  40. +0 −270 weave/blitz-20001213/blitz/array/indirect.h
  41. +0 −558 weave/blitz-20001213/blitz/array/interlace.cc
  42. +0 −132 weave/blitz-20001213/blitz/array/io.cc
  43. +0 −202 weave/blitz-20001213/blitz/array/iter.h
  44. +0 −495 weave/blitz-20001213/blitz/array/map.h
  45. +0 −407 weave/blitz-20001213/blitz/array/methods.cc
  46. +0 −62 weave/blitz-20001213/blitz/array/misc.cc
  47. +0 −60 weave/blitz-20001213/blitz/array/multi.h
  48. +0 −86 weave/blitz-20001213/blitz/array/newbops.cc
  49. +0 −355 weave/blitz-20001213/blitz/array/ops.cc
  50. +0 −167 weave/blitz-20001213/blitz/array/reduce.cc
  51. +0 −344 weave/blitz-20001213/blitz/array/reduce.h
  52. +0 −457 weave/blitz-20001213/blitz/array/resize.cc
  53. +0 −103 weave/blitz-20001213/blitz/array/shape.h
  54. +0 −136 weave/blitz-20001213/blitz/array/slice.h
  55. +0 −325 weave/blitz-20001213/blitz/array/slicing.cc
  56. +0 −272 weave/blitz-20001213/blitz/array/stencil-et.h
  57. +0 −583 weave/blitz-20001213/blitz/array/stencil.cc
  58. +0 −318 weave/blitz-20001213/blitz/array/stencil.h
  59. +0 −1,147 weave/blitz-20001213/blitz/array/stencilops.h
  60. +0 −221 weave/blitz-20001213/blitz/array/storage.h
  61. +0 −5,354 weave/blitz-20001213/blitz/array/uops.cc
  62. +0 −207 weave/blitz-20001213/blitz/array/where.h
  63. +0 −46 weave/blitz-20001213/blitz/array/zip.h
  64. +0 −198 weave/blitz-20001213/blitz/bench.cc
  65. +0 −156 weave/blitz-20001213/blitz/bench.h
  66. +0 −325 weave/blitz-20001213/blitz/benchext.cc
  67. +0 −139 weave/blitz-20001213/blitz/benchext.h
  68. +0 −123 weave/blitz-20001213/blitz/blitz.h
  69. +0 −247 weave/blitz-20001213/blitz/bzdebug.h
  70. +0 −189 weave/blitz-20001213/blitz/compiler.h
  71. +0 −66 weave/blitz-20001213/blitz/config.h
  72. +0 −19 weave/blitz-20001213/blitz/etbase.h
  73. +0 −97 weave/blitz-20001213/blitz/extremum.h
  74. +0 −236 weave/blitz-20001213/blitz/indexexpr.h
  75. +0 −414 weave/blitz-20001213/blitz/limits-hack.h
  76. +0 −134 weave/blitz-20001213/blitz/listinit.h
  77. +0 −6,070 weave/blitz-20001213/blitz/matbops.h
  78. +0 −185 weave/blitz-20001213/blitz/matdiag.h
  79. +0 −194 weave/blitz-20001213/blitz/matexpr.h
  80. +0 −222 weave/blitz-20001213/blitz/matgen.h
  81. +0 −252 weave/blitz-20001213/blitz/mathf2.h
  82. +0 −2,784 weave/blitz-20001213/blitz/mathfunc.h
  83. +0 −199 weave/blitz-20001213/blitz/matltri.h
  84. +0 −84 weave/blitz-20001213/blitz/matref.h
  85. +0 −80 weave/blitz-20001213/blitz/matrix.cc
  86. +0 −243 weave/blitz-20001213/blitz/matrix.h
  87. +0 −194 weave/blitz-20001213/blitz/matsymm.h
  88. +0 −179 weave/blitz-20001213/blitz/mattoep.h
  89. +0 −1 weave/blitz-20001213/blitz/matuops.h
  90. +0 −196 weave/blitz-20001213/blitz/matutri.h
  91. +0 −115 weave/blitz-20001213/blitz/memblock.cc
  92. +0 −381 weave/blitz-20001213/blitz/memblock.h
  93. +0 −121 weave/blitz-20001213/blitz/meta/dot.h
  94. +0 −96 weave/blitz-20001213/blitz/meta/matassign.h
  95. +0 −142 weave/blitz-20001213/blitz/meta/matmat.h
  96. +0 −223 weave/blitz-20001213/blitz/meta/matvec.h
  97. +0 −79 weave/blitz-20001213/blitz/meta/metaprog.h
  98. +0 −80 weave/blitz-20001213/blitz/meta/product.h
  99. +0 −77 weave/blitz-20001213/blitz/meta/sum.h
  100. +0 −104 weave/blitz-20001213/blitz/meta/vecassign.h
  101. +0 −41 weave/blitz-20001213/blitz/minmax.h
  102. +0 −158 weave/blitz-20001213/blitz/mstruct.h
  103. +0 −333 weave/blitz-20001213/blitz/numinquire.h
  104. +0 −120 weave/blitz-20001213/blitz/numtrait.h
  105. +0 −220 weave/blitz-20001213/blitz/ops.h
  106. +0 −91 weave/blitz-20001213/blitz/prettyprint.h
  107. +0 −1,360 weave/blitz-20001213/blitz/promote-old.h
  108. +0 −160 weave/blitz-20001213/blitz/promote.h
  109. +0 −88 weave/blitz-20001213/blitz/rand-dunif.h
  110. +0 −166 weave/blitz-20001213/blitz/rand-mt.h
  111. +0 −110 weave/blitz-20001213/blitz/rand-normal.h
  112. +0 −140 weave/blitz-20001213/blitz/rand-tt800.h
  113. +0 −137 weave/blitz-20001213/blitz/rand-uniform.h
  114. +0 −84 weave/blitz-20001213/blitz/random.h
  115. +0 −96 weave/blitz-20001213/blitz/randref.h
  116. +0 −238 weave/blitz-20001213/blitz/range.h
  117. +0 −809 weave/blitz-20001213/blitz/reduce.h
  118. +0 −88 weave/blitz-20001213/blitz/shapecheck.h
  119. +0 −63 weave/blitz-20001213/blitz/tau.h
  120. +0 −122 weave/blitz-20001213/blitz/timer.h
  121. +0 −59 weave/blitz-20001213/blitz/tiny.h
  122. +0 −161 weave/blitz-20001213/blitz/tinymat.h
  123. +0 −80 weave/blitz-20001213/blitz/tinymatexpr.h
  124. +0 −661 weave/blitz-20001213/blitz/tinyvec.cc
  125. +0 −456 weave/blitz-20001213/blitz/tinyvec.h
  126. +0 −78 weave/blitz-20001213/blitz/tinyvecio.cc
  127. +0 −179 weave/blitz-20001213/blitz/tinyveciter.h
  128. +0 −107 weave/blitz-20001213/blitz/traversal.cc
  129. +0 −178 weave/blitz-20001213/blitz/traversal.h
  130. +0 −172 weave/blitz-20001213/blitz/tuning.h
  131. +0 −67 weave/blitz-20001213/blitz/tvcross.h
  132. +0 −98 weave/blitz-20001213/blitz/tvecglobs.h
  133. +0 −98 weave/blitz-20001213/blitz/update.h
  134. +0 −87 weave/blitz-20001213/blitz/vecaccum.cc
  135. +0 −85 weave/blitz-20001213/blitz/vecall.cc
  136. +0 −85 weave/blitz-20001213/blitz/vecany.cc
  137. +0 −15 weave/blitz-20001213/blitz/vecbfn.cc
  138. +0 −17,299 weave/blitz-20001213/blitz/vecbops.cc
  139. +0 −83 weave/blitz-20001213/blitz/veccount.cc
  140. +0 −94 weave/blitz-20001213/blitz/vecdelta.cc
  141. +0 −151 weave/blitz-20001213/blitz/vecdot.cc
  142. +0 −298 weave/blitz-20001213/blitz/vecexpr.h
  143. +0 −105 weave/blitz-20001213/blitz/vecexprwrap.h
  144. +0 −45 weave/blitz-20001213/blitz/vecglobs.cc
  145. +0 −76 weave/blitz-20001213/blitz/vecglobs.h
  146. +0 −66 weave/blitz-20001213/blitz/vecio.cc
  147. +0 −229 weave/blitz-20001213/blitz/veciter.h
  148. +0 −172 weave/blitz-20001213/blitz/vecmax.cc
  149. +0 −170 weave/blitz-20001213/blitz/vecmin.cc
  150. +0 −111 weave/blitz-20001213/blitz/vecnorm.cc
  151. +0 −96 weave/blitz-20001213/blitz/vecnorm1.cc
  152. +0 −667 weave/blitz-20001213/blitz/vecpick.cc
  153. +0 −331 weave/blitz-20001213/blitz/vecpick.h
  154. +0 −43 weave/blitz-20001213/blitz/vecpickio.cc
  155. +0 −197 weave/blitz-20001213/blitz/vecpickiter.h
  156. +0 −126 weave/blitz-20001213/blitz/vecsum.cc
  157. +0 −871 weave/blitz-20001213/blitz/vector.cc
  158. +0 −507 weave/blitz-20001213/blitz/vector.h
  159. +0 −2,693 weave/blitz-20001213/blitz/vecuops.cc
  160. +0 −7,753 weave/blitz-20001213/blitz/vecwhere.cc
  161. +0 −145 weave/blitz-20001213/blitz/vecwhere.h
  162. +0 −10 weave/blitz-20001213/blitz/wrap-climits.h
  163. +0 −54 weave/blitz-20001213/blitz/zero.cc
  164. +0 −124 weave/blitz-20001213/blitz/zero.h
@@ -1,7 +0,0 @@
-"""scipy_distutils
-
- Modified version of distutils to handle fortran source code, f2py,
- and other issues in the scipy build process.
-"""
-
-# Need to do something here to get distutils subsumed...
@@ -1,4 +0,0 @@
-# This file is automatically updated with get_version
-# function from scipy_distutils.misc_utils.py
-version = '0.1.19-alpha-47'
-version_info = (0, 1, 19, 'alpha', 47)
@@ -1,29 +0,0 @@
-"""distutils.command
-
-Package containing implementation of all the standard Distutils
-commands."""
-
-__revision__ = "$Id$"
-
-distutils_all = [ 'build_py',
- 'build_scripts',
- 'clean',
- 'install_lib',
- 'install_scripts',
- 'bdist',
- 'bdist_dumb',
- 'bdist_rpm',
- 'bdist_wininst',
- ]
-
-__import__('distutils.command',globals(),locals(),distutils_all)
-
-__all__ = ['build',
- 'build_ext',
- 'build_clib',
- 'build_flib',
- 'install',
- 'install_data',
- 'install_headers',
- 'sdist',
- ] + distutils_all
@@ -1,17 +0,0 @@
-# Need to override the build command to include building of fortran libraries
-# This class must be used as the entry for the build key in the cmdclass
-# dictionary which is given to the setup command.
-
-from distutils.command.build import *
-from distutils.command.build import build as old_build
-
-class build(old_build):
- def has_f_libraries(self):
- return self.distribution.has_f_libraries()
-
- sub_commands = [('build_py', old_build.has_pure_modules),
- ('build_clib', old_build.has_c_libraries),
- ('build_flib', has_f_libraries), # new feature
- ('build_ext', old_build.has_ext_modules),
- ('build_scripts', old_build.has_scripts),
- ]
@@ -1,256 +0,0 @@
-"""distutils.command.build_clib
-
-Implements the Distutils 'build_clib' command, to build a C/C++ library
-that is included in the module distribution and needed by an extension
-module."""
-
-# created (an empty husk) 1999/12/18, Greg Ward
-# fleshed out 2000/02/03-04
-
-__revision__ = "$Id$"
-
-
-# XXX this module has *lots* of code ripped-off quite transparently from
-# build_ext.py -- not surprisingly really, as the work required to build
-# a static library from a collection of C source files is not really all
-# that different from what's required to build a shared object file from
-# a collection of C source files. Nevertheless, I haven't done the
-# necessary refactoring to account for the overlap in code between the
-# two modules, mainly because a number of subtle details changed in the
-# cut 'n paste. Sigh.
-
-import os, string
-from glob import glob
-from types import *
-from distutils.core import Command
-from distutils.errors import *
-from distutils.sysconfig import customize_compiler
-
-
-def show_compilers ():
- from distutils.ccompiler import show_compilers
- show_compilers()
-
-def get_headers(directory_list):
- # get *.h files from list of directories
- headers = []
- for dir in directory_list:
- head = glob(os.path.join(dir,"*.h"))
- headers.extend(head)
-
- return headers
-
-def get_directories(list_of_sources):
- # get unique directories from list of sources.
- direcs = []
- for file in list_of_sources:
- dir = os.path.split(file)
- if dir[0] != '' and not dir[0] in direcs:
- direcs.append(dir[0])
-
- return direcs
-
-
-class build_clib (Command):
-
- description = "build C/C++ libraries used by Python extensions"
-
- user_options = [
- ('build-clib', 'b',
- "directory to build C/C++ libraries to"),
- ('build-temp', 't',
- "directory to put temporary build by-products"),
- ('debug', 'g',
- "compile with debugging information"),
- ('force', 'f',
- "forcibly build everything (ignore file timestamps)"),
- ('compiler=', 'c',
- "specify the compiler type"),
- ]
-
- boolean_options = ['debug', 'force']
-
- help_options = [
- ('help-compiler', None,
- "list available compilers", show_compilers),
- ]
-
- def initialize_options (self):
- self.build_clib = None
- self.build_temp = None
-
- # List of libraries to build
- self.libraries = None
-
- # Compilation options for all libraries
- self.include_dirs = None
- self.define = None
- self.undef = None
- self.debug = None
- self.force = 0
- self.compiler = None
-
- # initialize_options()
-
-
- def finalize_options (self):
-
- # This might be confusing: both build-clib and build-temp default
- # to build-temp as defined by the "build" command. This is because
- # I think that C libraries are really just temporary build
- # by-products, at least from the point of view of building Python
- # extensions -- but I want to keep my options open.
- self.set_undefined_options('build',
- ('build_temp', 'build_clib'),
- ('build_temp', 'build_temp'),
- ('compiler', 'compiler'),
- ('debug', 'debug'),
- ('force', 'force'))
-
- self.libraries = self.distribution.libraries
- if self.libraries:
- self.check_library_list(self.libraries)
-
- if self.include_dirs is None:
- self.include_dirs = self.distribution.include_dirs or []
- if type(self.include_dirs) is StringType:
- self.include_dirs = string.split(self.include_dirs,
- os.pathsep)
-
- # XXX same as for build_ext -- what about 'self.define' and
- # 'self.undef' ?
-
- # finalize_options()
-
-
- def run (self):
-
- if not self.libraries:
- return
-
- # Yech -- this is cut 'n pasted from build_ext.py!
- from distutils.ccompiler import new_compiler
- self.compiler = new_compiler(compiler=self.compiler,
- verbose=self.verbose,
- dry_run=self.dry_run,
- force=self.force)
- customize_compiler(self.compiler)
-
- if self.include_dirs is not None:
- self.compiler.set_include_dirs(self.include_dirs)
- if self.define is not None:
- # 'define' option is a list of (name,value) tuples
- for (name,value) in self.define:
- self.compiler.define_macro(name, value)
- if self.undef is not None:
- for macro in self.undef:
- self.compiler.undefine_macro(macro)
-
- self.build_libraries(self.libraries)
-
- # run()
-
-
- def check_library_list (self, libraries):
- """Ensure that the list of libraries (presumably provided as a
- command option 'libraries') is valid, i.e. it is a list of
- 2-tuples, where the tuples are (library_name, build_info_dict).
- Raise DistutilsSetupError if the structure is invalid anywhere;
- just returns otherwise."""
-
- # Yechh, blecch, ackk: this is ripped straight out of build_ext.py,
- # with only names changed to protect the innocent!
-
- if type(libraries) is not ListType:
- raise DistutilsSetupError, \
- "'libraries' option must be a list of tuples"
-
- for lib in libraries:
- if type(lib) is not TupleType and len(lib) != 2:
- raise DistutilsSetupError, \
- "each element of 'libraries' must a 2-tuple"
-
- if type(lib[0]) is not StringType:
- raise DistutilsSetupError, \
- "first element of each tuple in 'libraries' " + \
- "must be a string (the library name)"
- if '/' in lib[0] or (os.sep != '/' and os.sep in lib[0]):
- raise DistutilsSetupError, \
- ("bad library name '%s': " +
- "may not contain directory separators") % \
- lib[0]
-
- if type(lib[1]) is not DictionaryType:
- raise DistutilsSetupError, \
- "second element of each tuple in 'libraries' " + \
- "must be a dictionary (build info)"
- # for lib
-
- # check_library_list ()
-
-
- def get_library_names (self):
- # Assume the library list is valid -- 'check_library_list()' is
- # called from 'finalize_options()', so it should be!
-
- if not self.libraries:
- return None
-
- lib_names = []
- for (lib_name, build_info) in self.libraries:
- lib_names.append(lib_name)
- return lib_names
-
- # get_library_names ()
-
-
- def get_source_files (self):
- self.check_library_list(self.libraries)
- filenames = []
-
- # Gets source files specified and any "*.h" header files in
- # those directories.
- for ext in self.libraries:
- filenames.extend(ext[1]['sources'])
- filenames.extend(get_headers(get_directories(ext[1]['sources'])))
-
- return filenames
-
- def build_libraries (self, libraries):
-
- compiler = self.compiler
-
- for (lib_name, build_info) in libraries:
- sources = build_info.get('sources')
- if sources is None or type(sources) not in (ListType, TupleType):
- raise DistutilsSetupError, \
- ("in 'libraries' option (library '%s'), " +
- "'sources' must be present and must be " +
- "a list of source filenames") % lib_name
- sources = list(sources)
-
- self.announce("building '%s' library" % lib_name)
-
- # First, compile the source code to object files in the library
- # directory. (This should probably change to putting object
- # files in a temporary build directory.)
- macros = build_info.get('macros')
- include_dirs = build_info.get('include_dirs')
- objects = self.compiler.compile(sources,
- output_dir=self.build_temp,
- macros=macros,
- include_dirs=include_dirs,
- debug=self.debug)
-
- # Now "link" the object files together into a static library.
- # (On Unix at least, this isn't really linking -- it just
- # builds an archive. Whatever.)
- self.compiler.create_static_lib(objects, lib_name,
- output_dir=self.build_clib,
- debug=self.debug)
-
- # for libraries
-
- # build_libraries ()
-
-# class build_lib
@@ -1,60 +0,0 @@
-""" Modified version of build_ext that handles fortran source files and f2py
-
- build_extension() handles building any needed static fortran libraries
- first and then calls our slightly_modified_..._extenstion() to do the
- rest of the processing in the (mostly) standard way.
-"""
-
-import os, string
-from types import *
-
-from distutils.dep_util import newer_group, newer
-from distutils.command.build_ext import *
-from distutils.command.build_ext import build_ext as old_build_ext
-
-class build_ext (old_build_ext):
-
- def run (self):
-
- if self.distribution.has_f_libraries():
- build_flib = self.get_finalized_command('build_flib')
- self.libraries.extend(build_flib.get_library_names() or [])
- self.library_dirs.extend(build_flib.get_library_dirs() or [])
- #self.library_dirs.extend(build_flib.get_library_dirs() or [])
- #runtime_dirs = build_flib.get_runtime_library_dirs()
- #self.runtime_library_dirs.extend(runtime_dirs or [])
-
- #?? what is this ??
- self.library_dirs.append(build_flib.build_flib)
-
- old_build_ext.run(self)
-
- def build_extension(self, ext):
- # support for building static fortran libraries
- if self.distribution.has_f_libraries():
- build_flib = self.get_finalized_command('build_flib')
- moreargs = build_flib.fcompiler.get_extra_link_args()
- if moreargs != []:
- if ext.extra_link_args is None:
- ext.extra_link_args = moreargs
- else:
- ext.extra_link_args += moreargs
- # be sure to include fortran runtime library directory names
- runtime_dirs = build_flib.get_runtime_library_dirs()
- ext.runtime_library_dirs.extend(runtime_dirs or [])
- linker_so = build_flib.fcompiler.get_linker_so()
- if linker_so is not None:
- self.compiler.linker_so = linker_so
- # end of fortran source support
- return old_build_ext.build_extension(self,ext)
-
- def get_source_files (self):
- self.check_extensions_list(self.extensions)
- filenames = []
-
- # Get sources and any include files in the same directory.
- for ext in self.extensions:
- filenames.extend(ext.sources)
- filenames.extend(get_headers(get_directories(ext.sources)))
-
- return filenames
Oops, something went wrong.

0 comments on commit e8c50dc

Please sign in to comment.