summaryrefslogtreecommitdiff
path: root/setuptools/command/depends.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/depends.py')
-rw-r--r--setuptools/command/depends.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/setuptools/command/depends.py b/setuptools/command/depends.py
new file mode 100644
index 0000000..e149fac
--- /dev/null
+++ b/setuptools/command/depends.py
@@ -0,0 +1,27 @@
+from distutils.cmd import Command
+import os
+
+class depends(Command):
+ """Download and install dependencies, if needed"""
+
+ description = "download and install dependencies, if needed"
+
+ user_options = [
+ ('temp=', 't',
+ "directory where dependencies will be downloaded and built"),
+ ('ignore-extra-args', 'i',
+ "ignore options that won't be passed to child setup scripts"),
+ ]
+
+ def initialize_options(self):
+ self.temp = None
+ self.install_purelib = self.install_platlib = None
+ self.install_lib = self.install_libbase = None
+ self.install_scripts = self.install_data = self.install_headers = None
+ self.compiler = self.debug = self.force = None
+
+ def finalize_options(self):
+ self.set_undefined_options('build',('build_temp', 'temp'))
+
+ def run(self):
+ self.announce("downloading and building here")