Skip to content

Instantly share code, notes, and snippets.

@mcdonc
Created January 2, 2013 02:19
Show Gist options
  • Save mcdonc/4431647 to your computer and use it in GitHub Desktop.
Save mcdonc/4431647 to your computer and use it in GitHub Desktop.
virtualenv rename
[chrism@thinko pyramid]$ virtualenv -p python2.7 myenv
Running virtualenv with interpreter /home/chrism/bin/python2.7
New python executable in myenv/bin/python2.7
Also creating executable in myenv/bin/python
Installing setuptools.............done.
Installing pip...............done.
[chrism@thinko pyramid]$ myenv/bin/python setup.py develop
running develop
running egg_info
writing requirements to pyramid.egg-info/requires.txt
writing pyramid.egg-info/PKG-INFO
writing top-level names to pyramid.egg-info/top_level.txt
writing dependency_links to pyramid.egg-info/dependency_links.txt
writing entry points to pyramid.egg-info/entry_points.txt
reading manifest file 'pyramid.egg-info/SOURCES.txt'
writing manifest file 'pyramid.egg-info/SOURCES.txt'
running build_ext
Creating /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/pyramid.egg-link (link to .)
Adding pyramid 1.4 to easy-install.pth file
Installing ptweens script to /home/chrism/projects/pyramid/myenv/bin
Installing proutes script to /home/chrism/projects/pyramid/myenv/bin
Installing pshell script to /home/chrism/projects/pyramid/myenv/bin
Installing prequest script to /home/chrism/projects/pyramid/myenv/bin
Installing pviews script to /home/chrism/projects/pyramid/myenv/bin
Installing bfg2pyramid script to /home/chrism/projects/pyramid/myenv/bin
Installing pcreate script to /home/chrism/projects/pyramid/myenv/bin
Installing pserve script to /home/chrism/projects/pyramid/myenv/bin
Installed /home/chrism/projects/pyramid
Processing dependencies for pyramid==1.4
Searching for PasteDeploy>=1.5.0
Reading http://pypi.python.org/simple/PasteDeploy/
Reading http://pythonpaste.org/deploy/
Reading http://pythonpaste.org/deploy/paste-deploy.html
Best match: PasteDeploy 1.5.0
Downloading http://pypi.python.org/packages/source/P/PasteDeploy/PasteDeploy-1.5.0.tar.gz#md5=f1a068a0b680493b6eaff3dd7690690f
Processing PasteDeploy-1.5.0.tar.gz
Running PasteDeploy-1.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XtMKNX/PasteDeploy-1.5.0/egg-dist-tmp-ulZ6Qu
Adding PasteDeploy 1.5.0 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/PasteDeploy-1.5.0-py2.7.egg
Searching for translationstring>=0.4
Reading http://pypi.python.org/simple/translationstring/
Reading http://www.repoze.org
Reading http://pylonsproject.org
Best match: translationstring 1.1
Downloading http://pypi.python.org/packages/source/t/translationstring/translationstring-1.1.tar.gz#md5=0979b46d8f0f852810c8ec4be5c26cf2
Processing translationstring-1.1.tar.gz
Running translationstring-1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-pcH8x7/translationstring-1.1/egg-dist-tmp-g1qeCW
no previously-included directories found matching 'docs/_build'
Adding translationstring 1.1 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
Searching for venusian>=1.0a3
Reading http://pypi.python.org/simple/venusian/
Best match: venusian 1.0a7
Downloading http://pypi.python.org/packages/source/v/venusian/venusian-1.0a7.tar.gz#md5=6f67506dd3cf77116f1c01682a6c3f27
Processing venusian-1.0a7.tar.gz
Running venusian-1.0a7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nbdD_9/venusian-1.0a7/egg-dist-tmp-y1y3Yr
Adding venusian 1.0a7 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/venusian-1.0a7-py2.7.egg
Searching for zope.deprecation>=3.5.0
Reading http://pypi.python.org/simple/zope.deprecation/
Best match: zope.deprecation 4.0.2
Downloading http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-4.0.2.tar.gz#md5=5f8cecce85f2783f9e020f1288e908fd
Processing zope.deprecation-4.0.2.tar.gz
Running zope.deprecation-4.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ogcgql/zope.deprecation-4.0.2/egg-dist-tmp-R57hRM
Adding zope.deprecation 4.0.2 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
Searching for zope.interface>=3.8.0
Reading http://pypi.python.org/simple/zope.interface/
Best match: zope.interface 4.0.3
Downloading http://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.0.3.tar.gz#md5=1ddd308f2c83703accd1696158c300eb
Processing zope.interface-4.0.3.tar.gz
Running zope.interface-4.0.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fqtNXp/zope.interface-4.0.3/egg-dist-tmp-35Wq08
Adding zope.interface 4.0.3 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/zope.interface-4.0.3-py2.7-linux-x86_64.egg
Searching for repoze.lru>=0.4
Reading http://pypi.python.org/simple/repoze.lru/
Best match: repoze.lru 0.6
Downloading http://pypi.python.org/packages/source/r/repoze.lru/repoze.lru-0.6.tar.gz#md5=2c3b64b17a8e18b405f55d46173e14dd
Processing repoze.lru-0.6.tar.gz
Running repoze.lru-0.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wG3OMX/repoze.lru-0.6/egg-dist-tmp-RaxEn1
Adding repoze.lru 0.6 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/repoze.lru-0.6-py2.7.egg
Searching for WebOb>=1.2b3
Reading http://pypi.python.org/simple/WebOb/
Reading http://pythonpaste.org/webob/
Best match: WebOb 1.2.3
Downloading http://pypi.python.org/packages/source/W/WebOb/WebOb-1.2.3.tar.gz#md5=11825b7074ba7043e157805e4e6e0f55
Processing WebOb-1.2.3.tar.gz
Running WebOb-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-k9UGae/WebOb-1.2.3/egg-dist-tmp-AoU9Xr
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Adding WebOb 1.2.3 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/WebOb-1.2.3-py2.7.egg
Searching for Mako>=0.3.6
Reading http://pypi.python.org/simple/Mako/
Reading http://www.makotemplates.org/
Best match: Mako 0.7.3
Downloading http://pypi.python.org/packages/source/M/Mako/Mako-0.7.3.tar.gz#md5=daf7cc50f997533b573f9b40193139a2
Processing Mako-0.7.3.tar.gz
Running Mako-0.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tzDHEd/Mako-0.7.3/egg-dist-tmp-_W3Mxe
warning: no files found matching '*.xml' under directory 'examples'
warning: no files found matching '*.mako' under directory 'examples'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Adding Mako 0.7.3 to easy-install.pth file
Installing mako-render script to /home/chrism/projects/pyramid/myenv/bin
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/Mako-0.7.3-py2.7.egg
Searching for Chameleon>=1.2.3
Reading http://pypi.python.org/simple/Chameleon/
Reading http://chameleon.repoze.org
Reading http://www.pagetemplates.org/
Best match: Chameleon 2.11
Downloading http://pypi.python.org/packages/source/C/Chameleon/Chameleon-2.11.tar.gz#md5=df72458bf3dd26a744dcff5ad555c34b
Processing Chameleon-2.11.tar.gz
Running Chameleon-2.11/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Chzftg/Chameleon-2.11/egg-dist-tmp-XX9dut
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
Extracting in /tmp/easy_install-Chzftg/Chameleon-2.11/temp/tmp_zLBPq
Now working in /tmp/easy_install-Chzftg/Chameleon-2.11/temp/tmp_zLBPq/distribute-0.6.14
Building a Distribute egg in /tmp/easy_install-Chzftg/Chameleon-2.11
/tmp/easy_install-Chzftg/Chameleon-2.11/distribute-0.6.14-py2.7.egg
Adding Chameleon 2.11 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/Chameleon-2.11-py2.7.egg
Searching for MarkupSafe>=0.9.2
Reading http://pypi.python.org/simple/MarkupSafe/
Reading http://dev.pocoo.org/
Best match: MarkupSafe 0.15
Downloading http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.15.tar.gz#md5=4e7c4d965fe5e033fa2d7bb7746bb186
Processing MarkupSafe-0.15.tar.gz
Running MarkupSafe-0.15/setup.py -q bdist_egg --dist-dir /tmp/easy_install-WWQ8HF/MarkupSafe-0.15/egg-dist-tmp-LDs2NY
Adding MarkupSafe 0.15 to easy-install.pth file
Installed /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/MarkupSafe-0.15-py2.7-linux-x86_64.egg
Searching for setuptools==0.6c11
Best match: setuptools 0.6c11
Processing setuptools-0.6c11-py2.7.egg
setuptools 0.6c11 is already the active version in easy-install.pth
Installing easy_install script to /home/chrism/projects/pyramid/myenv/bin
Installing easy_install-2.7 script to /home/chrism/projects/pyramid/myenv/bin
Using /home/chrism/projects/pyramid/myenv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Finished processing dependencies for pyramid==1.4
[chrism@thinko pyramid]$ myenv/bin/pcreate -h
Usage: pcreate [options] output_directory
Render Pyramid scaffolding to an output directory
Options:
-h, --help show this help message and exit
-s SCAFFOLD_NAME, --scaffold=SCAFFOLD_NAME
Add a scaffold to the create process (multiple -s args
accepted)
-t SCAFFOLD_NAME, --template=SCAFFOLD_NAME
A backwards compatibility alias for -s/--scaffold.
Add a scaffold to the create process (multiple -t args
accepted)
-l, --list List all available scaffold names
--list-templates A backwards compatibility alias for -l/--list. List
all available scaffold names.
--simulate Simulate but do no work
--overwrite Always overwrite
--interactive When a file would be overwritten, interrogate
[chrism@thinko pyramid]$ mv myenv myenv2
[chrism@thinko pyramid]$ myenv2/bin/pcreate -h
bash: myenv2/bin/pcreate: /home/chrism/projects/pyramid/myenv/bin/python: bad interpreter: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment