Skip to content

Commit 481e800

Browse files
author
Kenneth Reitz
committed
virtualenv v1.7.2
1 parent 9a7c6c3 commit 481e800

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3128
-1617
lines changed

bin/compile

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ indent() {
7474

7575
# Virtualenv wrapper.
7676
function virtualenv (){
77-
python "$ROOT_DIR/vendor/virtualenv-1.7/virtualenv.py" "$@"
77+
python "$ROOT_DIR/vendor/virtualenv-1.7.2/virtualenv.py" "$@"
7878
}
7979

8080
# Buildpack Steps.

vendor/virtualenv-1.7/AUTHORS.txt renamed to vendor/virtualenv-1.7.2/AUTHORS.txt

+18
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,38 @@ Contributors
1414
------------
1515

1616
Alex Grönholm
17+
Anatoly Techtonik
1718
Antonio Cuni
1819
Armin Ronacher
20+
Bradley Ayers
21+
Cap Petschulat
22+
CBWhiz
1923
Chris McDonough
2024
Christian Stefanescu
2125
Christopher Nilsson
26+
Cliff Xuan
2227
Curt Micol
28+
David Schoonover
29+
Doug Hellmann
30+
Doug Napoleone
2331
Douglas Creager
32+
Ethan Jucovy
2433
Gunnlaugur Thor Briem
34+
Greg Haskins
35+
Jason R. Coombs
2536
Jeff Hammel
37+
Jonathan Griffin
2638
Jorge Vargas
2739
Josh Bronson
40+
Konstantin Zemlyak
2841
Kumar McMillan
2942
Lars Francke
43+
Marc Abramowitz
44+
Mike Hommey
45+
Miki Tebeka
3046
Philip Jenvey
47+
Raul Leal
3148
Ronny Pfannschmidt
49+
Stefano Rivera
3250
Tarek Ziadé
3351
Vinay Sajip

vendor/virtualenv-1.7/LICENSE.txt renamed to vendor/virtualenv-1.7.2/LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Copyright (c) 2007 Ian Bicking and Contributors
22
Copyright (c) 2009 Ian Bicking, The Open Planning Project
3-
Copyright (c) 2011 The virtualenv developers
3+
Copyright (c) 2011-2012 The virtualenv developers
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

vendor/virtualenv-1.7.2/MANIFEST.in

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
recursive-include bin *
2+
recursive-include docs *
3+
recursive-include scripts *
4+
recursive-include virtualenv_support *.egg *.tar.gz
5+
recursive-include virtualenv_embedded *
6+
recursive-exclude docs/_templates *
7+
recursive-exclude docs/_build *
8+
include virtualenv_support/__init__.py
9+
include *.py
10+
include AUTHORS.txt
11+
include LICENSE.txt

vendor/virtualenv-1.7/virtualenv.egg-info/PKG-INFO renamed to vendor/virtualenv-1.7.2/PKG-INFO

+194-33
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,26 @@
1-
Metadata-Version: 1.0
1+
Metadata-Version: 1.1
22
Name: virtualenv
3-
Version: 1.7
3+
Version: 1.7.2
44
Summary: Virtual Python Environment builder
55
Home-page: http://www.virtualenv.org
66
Author: Jannis Leidel, Carl Meyer and Brian Rosner
77
Author-email: [email protected]
88
License: MIT
99
Description:
1010

11-
Status and License
12-
------------------
13-
14-
``virtualenv`` is a successor to `workingenv
15-
<http://cheeseshop.python.org/pypi/workingenv.py>`_, and an extension
16-
of `virtual-python
17-
<http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python>`_.
18-
19-
It was written by Ian Bicking, sponsored by the `Open Planning
20-
Project <http://openplans.org>`_ and is now maintained by a
21-
`group of developers <https://github.com/pypa/virtualenv/raw/master/AUTHORS.txt>`_.
22-
It is licensed under an
23-
`MIT-style permissive license <https://github.com/pypa/virtualenv/raw/master/LICENSE.txt>`_.
11+
Installation
12+
------------
2413

25-
You can install it with ``pip install virtualenv``, or the `latest
26-
development version <https://github.com/pypa/virtualenv/tarball/develop#egg=virtualenv-dev>`_
27-
with ``pip install virtualenv==dev``.
14+
You can install virtualenv with ``pip install virtualenv``, or the `latest
15+
development version <https://github.com/pypa/virtualenv/tarball/develop>`_
16+
with ``pip install https://github.com/pypa/virtualenv/tarball/develop``.
2817

2918
You can also use ``easy_install``, or if you have no Python package manager
3019
available at all, you can just grab the single file `virtualenv.py`_ and run
3120
it with ``python virtualenv.py``.
3221

3322
.. _virtualenv.py: https://raw.github.com/pypa/virtualenv/master/virtualenv.py
3423

35-
3624
What It Does
3725
------------
3826

@@ -78,9 +66,9 @@ Description:
7866

7967
$ python virtualenv.py --distribute ENV
8068

81-
You can also set the environment variable VIRTUALENV_USE_DISTRIBUTE.
69+
You can also set the environment variable VIRTUALENV_DISTRIBUTE.
8270

83-
A new virtualenv also includes the `pip <http://pypy.python.org/pypi/pip>`_
71+
A new virtualenv also includes the `pip <http://pypi.python.org/pypi/pip>`_
8472
installer, so you can use ``ENV/bin/pip`` to install additional packages into
8573
the environment.
8674

@@ -100,7 +88,7 @@ Description:
10088
For example, to automatically install Distribute instead of setuptools
10189
you can also set an environment variable::
10290

103-
$ export VIRTUALENV_USE_DISTRIBUTE=true
91+
$ export VIRTUALENV_DISTRIBUTE=true
10492
$ python virtualenv.py ENV
10593

10694
It's the same as passing the option to virtualenv directly::
@@ -121,7 +109,7 @@ Description:
121109

122110
virtualenv also looks for a standard ini config file. On Unix and Mac OS X
123111
that's ``$HOME/.virtualenv/virtualenv.ini`` and on Windows, it's
124-
``%HOME%\\virtualenv\\virtualenv.ini``.
112+
``%APPDATA%\virtualenv\virtualenv.ini``.
125113

126114
The names of the settings are derived from the long command line option,
127115
e.g. the option ``--distribute`` would look like this::
@@ -236,11 +224,12 @@ Description:
236224
~~~~~~~~~~~~~~~
237225

238226
In a newly created virtualenv there will be a ``bin/activate`` shell
239-
script, or a ``Scripts/activate.bat`` batch file on Windows.
227+
script. For Windows systems, activation scripts are provided for CMD.exe
228+
and Powershell.
240229

241230
On Posix systems you can do::
242231

243-
$ source bin/activate
232+
$ source bin/activate
244233

245234
This will change your ``$PATH`` to point to the virtualenv's ``bin/``
246235
directory. (You have to use ``source`` because it changes your shell
@@ -261,9 +250,65 @@ Description:
261250

262251
On Windows you just do::
263252

264-
> \path\to\env\Scripts\activate.bat
253+
> \path\to\env\Scripts\activate
254+
255+
And type `deactivate` to undo the changes.
256+
257+
Based on your active shell (CMD.exe or Powershell.exe), Windows will use
258+
either activate.bat or activate.ps1 (as appropriate) to activate the
259+
virtual environment. If using Powershell, see the notes about code signing
260+
below.
261+
262+
.. note::
263+
264+
If using Powershell, the ``activate`` script is subject to the
265+
`execution policies`_ on the system. By default on Windows 7, the system's
266+
excution policy is set to ``Restricted``, meaning no scripts like the
267+
``activate`` script are allowed to be executed. But that can't stop us
268+
from changing that slightly to allow it to be executed.
265269

266-
And use ``deactivate.bat`` to undo the changes.
270+
In order to use the script, you have to relax your system's execution
271+
policy to ``AllSigned``, meaning all scripts on the system must be
272+
digitally signed to be executed. Since the virtualenv activation
273+
script is signed by one of the authors (Jannis Leidel) this level of
274+
the execution policy suffices. As an administrator run::
275+
276+
PS C:\> Set-ExecutionPolicy AllSigned
277+
278+
Then you'll be asked to trust the signer, when executing the script.
279+
You will be prompted with the following::
280+
281+
PS C:\> virtualenv .\foo
282+
New python executable in C:\foo\Scripts\python.exe
283+
Installing setuptools................done.
284+
Installing pip...................done.
285+
PS C:\> .\foo\scripts\activate
286+
287+
Do you want to run software from this untrusted publisher?
288+
File C:\foo\scripts\activate.ps1 is published by [email protected],
289+
CN=Jannis Leidel, L=Berlin, S=Berlin, C=DE, Description=581796-Gh7xfJxkxQSIO4E0
290+
and is not trusted on your system. Only run scripts from trusted publishers.
291+
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help
292+
(default is "D"):A
293+
(foo) PS C:\>
294+
295+
If you select ``[A] Always Run``, the certificate will be added to the
296+
Trusted Publishers of your user account, and will be trusted in this
297+
user's context henceforth. If you select ``[R] Run Once``, the script will
298+
be run, but you will be prometed on a subsequent invocation. Advanced users
299+
can add the signer's certificate to the Trusted Publishers of the Computer
300+
account to apply to all users (though this technique is out of scope of this
301+
document).
302+
303+
Alternatively, you may relax the system execution policy to allow running
304+
of local scripts without verifying the code signature using the following::
305+
306+
PS C:\> Set-ExecutionPolicy RemoteSigned
307+
308+
Since the ``activate.ps1`` script is generated locally for each virtualenv,
309+
it is not considered a remote script and can then be executed.
310+
311+
.. _`execution policies`: http://technet.microsoft.com/en-us/library/dd347641.aspx
267312

268313
The ``--system-site-packages`` Option
269314
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -376,7 +421,16 @@ Description:
376421
If this option is provided, virtualenv will never try to download
377422
setuptools/distribute or pip. Instead, it will exit with status code 1
378423
if it fails to find local distributions for any of these required
379-
packages.
424+
packages. The local distribution lookup is done in this order and the
425+
following locations:
426+
427+
#. The current directory.
428+
#. The directory where virtualenv.py is located.
429+
#. A ``virtualenv_support`` directory relative to the directory where
430+
virtualenv.py is located.
431+
#. If the file being executed is not named virtualenv.py (i.e. is a boot
432+
script), a ``virtualenv_support`` directory relative to wherever
433+
virtualenv.py is actually installed.
380434

381435
Compare & Contrast with Alternatives
382436
------------------------------------
@@ -420,13 +474,15 @@ Description:
420474
------------
421475

422476
Refer to the `contributing to pip`_ documentation - it applies equally to
423-
virtualenv.
477+
virtualenv, except that virtualenv issues should filed on the `virtualenv
478+
repo`_ at GitHub.
424479

425480
Virtualenv's release schedule is tied to pip's -- each time there's a new pip
426481
release, there will be a new virtualenv release that bundles the new version of
427482
pip.
428483

429-
.. _contributing to pip: http://www.pip-installer.org/en/latest/how-to-contribute.html
484+
.. _contributing to pip: http://www.pip-installer.org/en/latest/contributing.html
485+
.. _virtualenv repo: https://github.com/pypa/virtualenv/
430486

431487
Running the tests
432488
~~~~~~~~~~~~~~~~~
@@ -478,16 +534,121 @@ Description:
478534
<http://code.google.com/p/modwsgi/wiki/VirtualEnvironments>`_.
479535

480536
* `virtualenv commands
481-
<http://thisismedium.com/tech/extending-virtualenv/>`_ for some more
537+
<https://github.com/thisismedium/virtualenv-commands>`_ for some more
482538
workflow-related tools around virtualenv.
483539

540+
Status and License
541+
------------------
542+
543+
``virtualenv`` is a successor to `workingenv
544+
<http://cheeseshop.python.org/pypi/workingenv.py>`_, and an extension
545+
of `virtual-python
546+
<http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python>`_.
547+
548+
It was written by Ian Bicking, sponsored by the `Open Planning
549+
Project <http://openplans.org>`_ and is now maintained by a
550+
`group of developers <https://github.com/pypa/virtualenv/raw/master/AUTHORS.txt>`_.
551+
It is licensed under an
552+
`MIT-style permissive license <https://github.com/pypa/virtualenv/raw/master/LICENSE.txt>`_.
553+
484554
Changes & News
485555
--------------
486556

557+
.. warning::
558+
559+
Python bugfix releases 2.6.8, 2.7.3, 3.1.5 and 3.2.3 include a change that
560+
will cause "import random" to fail with "cannot import name urandom" on any
561+
virtualenv created on a Unix host with an earlier release of Python
562+
2.6/2.7/3.1/3.2, if the underlying system Python is upgraded. This is due to
563+
the fact that a virtualenv uses the system Python's standard library but
564+
contains its own copy of the Python interpreter, so an upgrade to the system
565+
Python results in a mismatch between the version of the Python interpreter
566+
and the version of the standard library. It can be fixed by removing
567+
``$ENV/bin/python`` and re-running virtualenv on the same target directory
568+
with the upgraded Python.
569+
570+
571+
1.7.2 (2012-06-22)
572+
~~~~~~~~~~~~~~~~~~
573+
574+
* Updated to distribute 0.6.27.
575+
576+
* Fix activate.fish on OS X. Fixes #8. Thanks David Schoonover.
577+
578+
* Create a virtualenv-x.x script with the Python version when installing, so
579+
virtualenv for multiple Python versions can be installed to the same
580+
script location. Thanks Miki Tebeka.
581+
582+
* Restored ability to create a virtualenv with a path longer than 78
583+
characters, without breaking creation of virtualenvs with non-ASCII paths.
584+
Thanks, Bradley Ayers.
585+
586+
* Added ability to create virtualenvs without having installed Apple's
587+
developers tools (using an own implementation of ``install_name_tool``).
588+
Thanks Mike Hommey.
589+
590+
* Fixed PyPy and Jython support on Windows. Thanks Konstantin Zemlyak.
591+
592+
* Added pydoc script to ease use. Thanks Marc Abramowitz. Fixes #149.
593+
594+
* Fixed creating a bootstrap script on Python 3. Thanks Raul Leal. Fixes #280.
595+
596+
* Fixed inconsistency when having set the ``PYTHONDONTWRITEBYTECODE`` env var
597+
with the --distribute option or the ``VIRTUALENV_USE_DISTRIBUTE`` env var.
598+
``VIRTUALENV_USE_DISTRIBUTE`` is now considered again as a legacy alias.
599+
600+
1.7.1.2 (2012-02-17)
601+
~~~~~~~~~~~~~~~~~~~~
602+
603+
* Fixed minor issue in `--relocatable`. Thanks, Cap Petschulat.
604+
605+
1.7.1.1 (2012-02-16)
606+
~~~~~~~~~~~~~~~~~~~~
607+
608+
* Bumped the version string in ``virtualenv.py`` up, too.
609+
610+
* Fixed rST rendering bug of long description.
611+
612+
1.7.1 (2012-02-16)
613+
~~~~~~~~~~~~~~~~~~
614+
615+
* Update embedded pip to version 1.1.
616+
617+
* Fix `--relocatable` under Python 3. Thanks Doug Hellmann.
618+
619+
* Added environ PATH modification to activate_this.py. Thanks Doug
620+
Napoleone. Fixes #14.
621+
622+
* Support creating virtualenvs directly from a Python build directory on
623+
Windows. Thanks CBWhiz. Fixes #139.
624+
625+
* Use non-recursive symlinks to fix things up for posix_local install
626+
scheme. Thanks michr.
627+
628+
* Made activate script available for use with msys and cygwin on Windows.
629+
Thanks Greg Haskins, Cliff Xuan, Jonathan Griffin and Doug Napoleone.
630+
Fixes #176.
631+
632+
* Fixed creation of virtualenvs on Windows when Python is not installed for
633+
all users. Thanks Anatoly Techtonik for report and patch and Doug
634+
Napoleone for testing and confirmation. Fixes #87.
635+
636+
* Fixed creation of virtualenvs using -p in installs where some modules
637+
that ought to be in the standard library (e.g. `readline`) are actually
638+
installed in `site-packages` next to `virtualenv.py`. Thanks Greg Haskins
639+
for report and fix. Fixes #167.
640+
641+
* Added activation script for Powershell (signed by Jannis Leidel). Many
642+
thanks to Jason R. Coombs.
643+
487644
1.7 (2011-11-30)
488645
~~~~~~~~~~~~~~~~
489646

490-
* Updated embedded Distribute release to 0.6.24. Thanks Alex Grönholm.
647+
* Gave user-provided ``--extra-search-dir`` priority over default dirs for
648+
finding setuptools/distribute (it already had priority for finding pip).
649+
Thanks Ethan Jucovy.
650+
651+
* Updated embedded Distribute release to 0.6.24. Thanks Alex Gronholm.
491652

492653
* Made ``--no-site-packages`` behavior the default behavior. The
493654
``--no-site-packages`` flag is still permitted, but displays a warning when
@@ -645,7 +806,7 @@ Description:
645806
* Fix problem with ``virtualenv --relocate`` when ``bin/`` has
646807
subdirectories (e.g., ``bin/.svn/``); from Alan Franzoni.
647808

648-
* If you set ``$VIRTUALENV_USE_DISTRIBUTE`` then virtualenv will use
809+
* If you set ``$VIRTUALENV_DISTRIBUTE`` then virtualenv will use
649810
Distribute by default (so you don't have to remember to use
650811
``--distribute``).
651812

0 commit comments

Comments
 (0)