Skip to content

Commit

Permalink
Added README and LICENSE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Boronine committed Aug 1, 2010
1 parent 0a6e307 commit f12eb6a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2010 Alexei Boronine

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

21 changes: 21 additions & 0 deletions README.markdown
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,21 @@
As of this writing, PyPy isn't supported by virtualenv, fiddling with both,
I found a way to use them together and made this script to simplify it for
other developers. Supports Linux and (experimentally) OS X.

workon myenv
easy_install pypyenv
pypyenv install # Tries to install PyPy with JIT
pypyenv --nojit install # Forces non-JIT installation
pypyenv uninstall # Uninstalls PyPy from virtualenv

pypyenv will create a `pypy` executable in your virtualenv's `bin` folder,
but will not change your current `python` executable by default. If you want
to use PyPy exclusively in your virtualenv, do the following:

cd path/to/my/env
cd bin
mv python python.bak
ln -s pypy python

Good luck!

6 changes: 5 additions & 1 deletion pypyenv
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def install():
out("deleting ENV/%s" % unpacked) out("deleting ENV/%s" % unpacked)
shutil.rmtree(unpacked) shutil.rmtree(unpacked)
out("unpacking archive") out("unpacking archive")
archiveobj.extractall(srcdir) try:
archiveobj.extractall(srcdir)
except EOFError:
# FIXME: Investigate why this sometimes only works on the second try
archiveobj.extractall(srcdir)
# Copying PyPy directory into virtualenv root # Copying PyPy directory into virtualenv root
out("copying PyPy directory into root") out("copying PyPy directory into root")
shutil.copytree(unpacked, pypydir) shutil.copytree(unpacked, pypydir)
Expand Down

0 comments on commit f12eb6a

Please sign in to comment.