summaryrefslogtreecommitdiff
path: root/numpy/distutils/command
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/command
parent27160564fa6d81889ec8ed53cf8f263cfbec476e (diff)
downloadnumpy-78de166d5bd2a41f90defd899abb9fb6c14c6c79.tar.gz
Add a install_clib command.
Diffstat (limited to 'numpy/distutils/command')
-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
3 files changed, 24 insertions, 1 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 []