summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-07-26 11:03:58 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-07-26 11:03:58 +0000
commit78de166d5bd2a41f90defd899abb9fb6c14c6c79 (patch)
treed2fe5c273fae57fddc9dbe024826e85909ec21e7 /numpy/distutils
parent27160564fa6d81889ec8ed53cf8f263cfbec476e (diff)
downloadnumpy-78de166d5bd2a41f90defd899abb9fb6c14c6c79.tar.gz
Add a install_clib command.
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/command/__init__.py3
-rw-r--r--numpy/distutils/command/install.py3
-rw-r--r--numpy/distutils/command/install_clib.py19
-rw-r--r--numpy/distutils/core.py4
4 files changed, 27 insertions, 2 deletions
diff --git a/numpy/distutils/command/__init__.py b/numpy/distutils/command/__init__.py
index dfe81d542..87546aeee 100644
--- a/numpy/distutils/command/__init__.py
+++ b/numpy/distutils/command/__init__.py
@@ -7,7 +7,7 @@ __revision__ = "$Id: __init__.py,v 1.3 2005/05/16 11:08:49 pearu Exp $"
distutils_all = [ 'build_py',
'clean',
- 'install_lib',
+ 'install_clib',
'install_scripts',
'bdist',
'bdist_dumb',
@@ -26,6 +26,7 @@ __all__ = ['build',
'install',
'install_data',
'install_headers',
+ 'install_lib',
'bdist_rpm',
'sdist',
] + distutils_all
diff --git a/numpy/distutils/command/install.py b/numpy/distutils/command/install.py
index 87b549da8..2cfb9c4c9 100644
--- a/numpy/distutils/command/install.py
+++ b/numpy/distutils/command/install.py
@@ -10,6 +10,9 @@ from distutils.file_util import write_file
class install(old_install):
+ # XXX: fix the lambda: True
+ sub_commands = old_install.sub_commands + [('install_clib', lambda x: True)]
+
def finalize_options (self):
old_install.finalize_options(self)
self.install_lib = self.install_libbase
diff --git a/numpy/distutils/command/install_clib.py b/numpy/distutils/command/install_clib.py
new file mode 100644
index 000000000..c6934e6f8
--- /dev/null
+++ b/numpy/distutils/command/install_clib.py
@@ -0,0 +1,19 @@
+import os
+from distutils.core import Command
+
+class install_clib(Command):
+ description = "Command to install installable C libraries"
+
+ user_options = []
+
+ def initialize_options(self):
+ pass
+
+ def finalize_options(self):
+ pass
+
+ def run (self):
+ pass
+
+ def get_outputs(self):
+ return []
diff --git a/numpy/distutils/core.py b/numpy/distutils/core.py
index 20fc3eac1..8481640bd 100644
--- a/numpy/distutils/core.py
+++ b/numpy/distutils/core.py
@@ -24,7 +24,8 @@ from numpy.distutils.extension import Extension
from numpy.distutils.numpy_distribution import NumpyDistribution
from numpy.distutils.command import config, config_compiler, \
build, build_py, build_ext, build_clib, build_src, build_scripts, \
- sdist, install_data, install_headers, install, bdist_rpm, scons
+ sdist, install_data, install_headers, install, bdist_rpm, scons, \
+ install_clib
from numpy.distutils.misc_util import get_data_files, is_sequence, is_string
numpy_cmdclass = {'build': build.build,
@@ -40,6 +41,7 @@ numpy_cmdclass = {'build': build.build,
'scons': scons.scons,
'install_data': install_data.install_data,
'install_headers': install_headers.install_headers,
+ 'install_clib': install_clib.install_clib,
'install': install.install,
'bdist_rpm': bdist_rpm.bdist_rpm,
}