summaryrefslogtreecommitdiff
path: root/scipy_distutils/command/install.py
diff options
context:
space:
mode:
authornobody <nobody@localhost>2002-01-05 17:07:10 +0000
committernobody <nobody@localhost>2002-01-05 17:07:10 +0000
commite8c50dc6676e380e814c77927445ab3594382bc4 (patch)
tree8b24a70994ccef281e051bd62a39a93234973c68 /scipy_distutils/command/install.py
parentf2e5fb8573178cb7a8924d57e70bf9c199034622 (diff)
downloadnumpy-0.2.0.tar.gz
This commit was manufactured by cvs2svn to create tagv0.2.0
'release_0_2_0'.
Diffstat (limited to 'scipy_distutils/command/install.py')
-rw-r--r--scipy_distutils/command/install.py54
1 files changed, 0 insertions, 54 deletions
diff --git a/scipy_distutils/command/install.py b/scipy_distutils/command/install.py
deleted file mode 100644
index 43be36c8a..000000000
--- a/scipy_distutils/command/install.py
+++ /dev/null
@@ -1,54 +0,0 @@
-from types import StringType
-from distutils.command.install import *
-from distutils.command.install import install as old_install
-from distutils.util import convert_path
-from distutils.file_util import write_file
-from distutils.errors import DistutilsOptionError
-
-#install support for Numeric.pth setup
-class install(old_install):
- def finalize_options (self):
- old_install.finalize_options(self)
- self.install_lib = self.install_libbase
-
- def handle_extra_path (self):
- if self.extra_path is None:
- self.extra_path = self.distribution.extra_path
-
- if self.extra_path is not None:
- if type(self.extra_path) is StringType:
- self.extra_path = string.split(self.extra_path, ',')
- if len(self.extra_path) == 1:
- path_file = extra_dirs = self.extra_path[0]
- elif len(self.extra_path) == 2:
- (path_file, extra_dirs) = self.extra_path
- else:
- raise DistutilsOptionError, \
- "'extra_path' option must be a list, tuple, or " + \
- "comma-separated string with 1 or 2 elements"
-
- # convert to local form in case Unix notation used (as it
- # should be in setup scripts)
- extra_dirs = convert_path(extra_dirs)
-
- else:
- path_file = None
- extra_dirs = ''
-
- # XXX should we warn if path_file and not extra_dirs? (in which
- # case the path file would be harmless but pointless)
- self.path_file = path_file
- self.extra_dirs = ''
- self.pth_file = extra_dirs
-
- # handle_extra_path ()
-
- def create_path_file (self):
- filename = os.path.join(self.install_libbase,
- self.path_file + ".pth")
- if self.install_path_file:
- self.execute(write_file,
- (filename, [self.pth_file]),
- "creating %s" % filename)
- else:
- self.warn("path file '%s' not created" % filename) \ No newline at end of file