Permalink
Browse files

Added README and LICENSE.

  • Loading branch information...
1 parent 0a6e307 commit f12eb6a60171a09f6a867d601f75b518d5e80744 Alexei Boronine committed Aug 1, 2010
Showing with 46 additions and 1 deletion.
  1. +20 −0 LICENSE
  2. +21 −0 README.markdown
  3. +5 −1 pypyenv
View
20 LICENSE
@@ -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.
+
View
@@ -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!
+
View
@@ -46,7 +46,11 @@ def install():
out("deleting ENV/%s" % unpacked)
shutil.rmtree(unpacked)
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
out("copying PyPy directory into root")
shutil.copytree(unpacked, pypydir)

0 comments on commit f12eb6a

Please sign in to comment.