def install_dependencies()

in dh_virtualenv/deployment.py [0:0]


    def install_dependencies(self):
        # Install preinstall stage packages. This is handy if you need
        # a custom package to install dependencies (think something
        # along lines of setuptools), but that does not get installed
        # by default virtualenv.
        if self.upgrade_pip or self.upgrade_pip_to:
            # First, bootstrap pip with a reduced option set (well-supported options)
            cmd = self.pip_preinstall_prefix + self.pip_upgrade_args
            if not self.upgrade_pip_to or self.upgrade_pip_to == 'latest':
                cmd += ['-U', 'pip']
            else:
                cmd += ['pip==' + self.upgrade_pip_to]
            subprocess.check_call(cmd)
        if self.preinstall:
            subprocess.check_call(self.pip_preinstall(*self.preinstall))

        requirements_path = os.path.join(self.sourcedirectory, self.requirements_filename)
        if os.path.exists(requirements_path):
            subprocess.check_call(self.pip('-r', requirements_path))