summaryrefslogtreecommitdiff
path: root/setuptools/command/depends.py
blob: e149faca63634415544f6ec3ab347813425af8ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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")