def run(self, *args, **kwargs): print "MODIFIED RUN: %s" % self.__class__ if self.minimal: self.distribution.install_requires = parse_requirements(["minimal-requirements.txt"]) print "SELF.MINIMAL" print "install requires: %s" % (self.distribution.install_requires) install_command.run(self, *args, **kwargs)
def __init__(self, *args, **kwargs): self.minimal = None install_command.__init__(self, *args, **kwargs)