- def install_setuptools(self, context):
- """
- Install setuptools in the environment.
-
- :param context: The information for the environment creation request
- being processed.
- """
- url = 'https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py'
- self.install_script(context, 'setuptools', url)
- # clear up the setuptools archive which gets downloaded
- pred = lambda o: o.startswith('setuptools-') and o.endswith('.tar.gz')
- files = filter(pred, os.listdir(context.bin_path))
- for f in files:
- f = os.path.join(context.bin_path, f)
- os.unlink(f)
-
- def install_pip(self, context):
- """
- Install pip in the environment.