Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

be compatible with both old pypys and pypy >= 1.5

  • Loading branch information...
commit 4add928ee0832c3eafdbbbb1233f6c7772835727 1 parent f5da20c
@antocuni antocuni authored
Showing with 42 additions and 28 deletions.
  1. +38 −27 virtualenv.py
  2. +4 −1 virtualenv_support/site.py
View
65 virtualenv.py
@@ -1619,38 +1619,39 @@ def convert(s):
XRcX0w+0j3xoRtLlQ7W9O4mTQ0neqaKL43Z8SkNZQlq+NV/GMMp7SmtrT8AbS/xJJ1WxeN274sE9
R9fk+uoGrt9o73MAOHRdkFWQlh09HeHcUWXhM9PuuXABPxSiE263aVU3STbVNwRM0WGb2o11jac9
f3XnyULrrYCTX4AHfKhLxcFxMFU2SE+s9DRHAU7EUqcoYvdIk3/6pyzQy3vBvhL4FEiZxdQcxDVJ
-pCvLrvaE4zO+gsBR8QjqK3Nq5iE2wZzd6B17cKcxoaKncNwt5ey1wg0WU5tvPe9uZPCoITuwfC9+
-Xu7wKiGY1pNF/GQR+j4e3eFwdfzi+tEjZ+mMRgqHyp3v76vrDzEW3IAYLVO5OHyiEDtG+PdC1VDa
-ee1nGpoxnoY+sAVQ+iBwezyCTkHNwMHftrrF0TLGFbWDmBPGWiXwYUyUXzZG9gC5qUHp1AHaS76w
-RlCj5+tpZNjp0D4VfsOLOuC9JqjL33v3L3VFtwU7EJ7rY3u8G9U2HIjPHsFDIV0qQov2VWeH9o9c
-PC4S37fP18Pym6/vwtO1qYMV8gME9YjptPoDmWovyzx2YR6wdX4//z2c9+7iu0dTSfcaphVGNVhT
-vE74DVqnpjy2Ub8RSdyVidxKM/zUN4NnMFgcUTfVN+Fd0+f+d81dtwjszM1Ga2/u/lkrlwa6735+
-GaIBR1yaEA8q324FdlgXuGI80fv7w9lD/UHyu51wpnu0wn1gTDUB5iKJTTX2Rmtukrn7HYtVDvk6
-Ufdo3aCu7ky7d9awy/EPUbS8MY/P7WlbqrZYaA5kF47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DfuWUqd15u5vTnZilmlAdE8ZszjFN3eLagco+
+wb4Yp1ervycOMvu+DGnkvR8u8jE9vFurR11MLesdw5RE9ESNaVrO6QaNu30y7k+3VVt9IHxS4wFA
+eioQYCGYnm50Kud2XP4aPdNR4ayhezHdjHvoSAVV0fgcwT2M79fi1+1OJywf1J1RNP25QZcD9ZKD
+cLPvwK3GXkpkv0noTr3lgz0uAB9WHe7//AH9+/VdtvuLu/xq2+rl4AEp9mWxJBArJTokMo9jMDKg
+NyPS1lhHbgQdL6Fo6egyVDs35At0/KjMEG+9pQCDnNmp9gCsUQj+D1/Qrqc=
""")
+
##file ez_setup.py
EZ_SETUP_PY = convert("""
eJzNWmtv49a1/a5fwSgwJGE0NN8PDzRFmkyBAYrcIo8CFx5XPk+LHYpUSWoctch/v+ucQ1KkZDrt
@@ -1725,6 +1726,7 @@ def convert(s):
+
##file distribute_setup.py
DISTRIBUTE_SETUP_PY = convert("""
eJztG2tz28bxO3/FlRoNQJuEJCdpO5oyM04sp5q4tseSkw+2BjoCRxIRXsFDFPPru7t3BxyAAyXX
@@ -1811,6 +1813,7 @@ def convert(s):
+
##file activate.sh
ACTIVATE_SH = convert("""
eJytVU1v4jAQPW9+xTT0ANVS1GsrDlRFAqmFqmG72m0rY5IJsRRslDiktNr/vuMQ8tFQpNU2B4I9
@@ -1832,6 +1835,7 @@ def convert(s):
+
##file activate.fish
ACTIVATE_FISH = convert("""
eJydVm1v4jgQ/s6vmA1wBxUE7X2stJVYlVWR2lK13d6d9laRk0yIr8HmbIe0++tvnIQQB9pbXT5A
@@ -1858,6 +1862,7 @@ def convert(s):
+
##file activate.csh
ACTIVATE_CSH = convert("""
eJx9U11vmzAUffevOCVRu+UB9pws29Kl0iq1aVWllaZlcgxciiViItsQdb9+xiQp+dh4QOB7Pu49
@@ -1874,6 +1879,7 @@ def convert(s):
+
##file activate.bat
ACTIVATE_BAT = convert("""
eJyFUkEKgzAQvAfyhz0YaL9QEWpRqlSjWGspFPZQTevFHOr/adQaU1GaUzI7Mzu7ZF89XhKkEJS8
@@ -1885,6 +1891,7 @@ def convert(s):
+
##file deactivate.bat
DEACTIVATE_BAT = convert("""
eJxzSE3OyFfIT0vj4spMU0hJTcvMS01RiPf3cYkP8wwKCXX0iQ8I8vcNCFHQ4FIAguLUEgWIgK0q
@@ -1895,6 +1902,7 @@ def convert(s):
+
##file distutils-init.py
DISTUTILS_INIT = convert("""
eJytV92L4zYQf/dfMU0ottuse7RvC6FQrg8Lxz2Ugz4si9HacqKuIxlJ2ST313dG8odkO9d7aGBB
@@ -1924,6 +1932,7 @@ def convert(s):
+
##file distutils.cfg
DISTUTILS_CFG = convert("""
eJxNj00KwkAMhfc9xYNuxe4Ft57AjYiUtDO1wXSmNJnK3N5pdSEEAu8nH6lxHVlRhtDHMPATA4uH
@@ -1934,6 +1943,7 @@ def convert(s):
+
##file activate_this.py
ACTIVATE_THIS = convert("""
eJyNUlGL2zAMfvevEBlHEujSsXsL9GGDvW1jD3sZpQQ3Ua7aJXawnbT595Ocpe0dO5ghseVP+vRJ
@@ -1950,6 +1960,7 @@ def convert(s):
+
if __name__ == '__main__':
main()
View
5 virtualenv_support/site.py
@@ -553,7 +553,10 @@ def virtual_install_main_packages():
elif _is_jython:
paths = [os.path.join(sys.real_prefix, 'Lib')]
elif _is_pypy:
- cpyver = '%d.%d' % sys.version_info[:2]
+ if sys.pypy_version_info >= (1, 5):
+ cpyver = '%d.%d' % sys.version_info[:2]
+ else:
+ cpyver = '%d.%d.%d' % sys.version_info[:3]
paths = [os.path.join(sys.real_prefix, 'lib_pypy'),
os.path.join(sys.real_prefix, 'lib-python', 'modified-%s' % cpyver),
os.path.join(sys.real_prefix, 'lib-python', cpyver)]
Please sign in to comment.
Something went wrong with that request. Please try again.