diff options
author | Greg Ward <gward@python.net> | 2000-03-22 00:35:16 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-03-22 00:35:16 (GMT) |
commit | 5b001f15699bcb0f9040c7a69dea73b1c8902274 (patch) | |
tree | 5084f73d81c4203968d3ed5ff5c508b6324bb21b /Lib | |
parent | 1497b61cb031b3cae83b2e9cfff7ed69f6a7af7c (diff) | |
download | cpython-5b001f15699bcb0f9040c7a69dea73b1c8902274.zip cpython-5b001f15699bcb0f9040c7a69dea73b1c8902274.tar.gz cpython-5b001f15699bcb0f9040c7a69dea73b1c8902274.tar.bz2 |
Obsolete command -- no longer relevant since we now build all modules, pure
Python and extensions, into the same directory.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/install_ext.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Lib/distutils/command/install_ext.py b/Lib/distutils/command/install_ext.py deleted file mode 100644 index 1473090..0000000 --- a/Lib/distutils/command/install_ext.py +++ /dev/null @@ -1,43 +0,0 @@ -"""install_ext - -Implement the Distutils "install_ext" command to install extension modules.""" - -# created 1999/09/12, Greg Ward - -__revision__ = "$Id$" - -from distutils.core import Command -from distutils.util import copy_tree - -class install_ext (Command): - - description = "install C/C++ extension modules" - - user_options = [ - ('install-dir=', 'd', "directory to install to"), - ('build-dir=','b', "build directory (where to install from)"), - ] - - def initialize_options (self): - # let the 'install' command dictate our installation directory - self.install_dir = None - self.build_dir = None - - def finalize_options (self): - self.set_undefined_options ('install', - ('build_lib', 'build_dir'), - ('install_lib', 'install_dir')) - - def run (self): - - # Make sure we have built all extension modules first - self.run_peer ('build_ext') - - # Dump the entire "build/platlib" directory (or whatever it really - # is; "build/platlib" is the default) to the installation target - # (eg. "/usr/local/lib/python1.5/site-packages"). Note that - # putting files in the right package dir is already done when we - # build. - outfiles = self.copy_tree (self.build_dir, self.install_dir) - -# class InstallExt |