def bootstrap(options): """create virtualenv in ./env This will use the system python """ env = options.development_env # Create the virtual environment without installing paver using standard easy_install. # We do this so it doesn't try to get it via the network. It will be installed along # with other dependencies we deliver. # virtual._create_bootstrap( env.bootstrap, packages_to_install=[], paver_command_line=None, install_paver=False, dest_dir=env.env_root, no_site_packages=True, unzip_setuptools=True, ) # Actually create the virtual from the bootstrap we just created: easy.sh('%s %s --no-site-packages --clear' % (sys.executable, env.bootstrap)) env.env_root.chdir()
def create_bootstrap(): from paver.virtual import _create_bootstrap localopts = options.create_bootstrap pathtoenv = get_env_path(localopts) _create_bootstrap('bootstrap.py', [ 'Django==1.2.4', 'Jinja2==2.5.5', 'DjanJinja==0.8', 'celery==2.2.1', 'django-celery==2.2.1', 'BeautifulSoup==3.2.0', 'py-bcrypt', ], '', dest_dir=pathtoenv, no_site_packages=True)