Skip to content

Commit

Permalink
Merge branch '1.11.X'
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Jan 21, 2014
2 parents d2df93c + ef04aed commit 9e7401c
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 25 deletions.
42 changes: 23 additions & 19 deletions .travis.yml
@@ -1,22 +1,26 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "pypy"

env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy

install:
- pip install --use-mirrors nose coverage
script:
- coverage erase
# Unit tests
- coverage run -a setup.py test
# Integration test
- coverage run -a virtualenv.py ./test-venv-01
# How was our test coverage?
- coverage report --show-missing
- "if [[ $TOXENV == 'py34' ]]; then .travis/py34.sh; fi"
- pip install tox

script: tox

branches:
only:
- master
- develop
- 1.9.X
- 1.10.X
- 1.11.X

notifications:
irc:
channels: "irc.freenode.org#pip"
on_success: change
on_failure: change
irc: "irc.freenode.org#pip"
11 changes: 11 additions & 0 deletions .travis/py34.sh
@@ -0,0 +1,11 @@
#!/bin/sh

# Get the Source Code
cd ..
hg clone http://hg.python.org/cpython

# Build Python
cd cpython
./configure
make -j8
sudo make install
12 changes: 12 additions & 0 deletions docs/news.rst
Expand Up @@ -14,6 +14,17 @@ Changes & News
``$ENV/bin/python`` and re-running virtualenv on the same target directory
with the upgraded Python.


1.11.1 (2014-01-20)
~~~~~~~~~~~~~~~~~~~

* Fixed an issue where pip and setuptools were not getting installed when using
the ``--system-site-packages`` flag.
* Updated setuptools to fix an issue when installed with easy_install
* Fixed an issue with Python 3.4 and sys.stdout encoding being set to ascii
* Upgraded pip to v1.5.1
* Upgraded setuptools to v2.1

1.11 (2014-01-02)
~~~~~~~~~~~~~~~~~

Expand All @@ -25,6 +36,7 @@ Changes & News
extra directories to search for compatible wheels for pip and setuptools.
The actual wheel selected is chosen based on version and compatibility, using
the same algorithm as ``pip install setuptools``.
* Fixed #495, --always-copy was failing (#PR 511)
* Upgraded pip to v1.5
* Upgraded setuptools to v1.4

Expand Down
4 changes: 2 additions & 2 deletions docs/virtualenv.rst
Expand Up @@ -509,7 +509,7 @@ deployment use one of these tools.
Contributing
------------

Refer to the `contributing to pip`_ documentation - it applies equally to
Refer to the `pip development`_ documentation - it applies equally to
virtualenv, except that virtualenv issues should filed on the `virtualenv
repo`_ at GitHub.

Expand All @@ -524,7 +524,7 @@ changes any file in `virtualenv_embedded/`, run `bin/rebuild-script.py` to
update the embedded version of that file in `virtualenv.py`; commit that and
submit it as part of your patch / pull request.

.. _contributing to pip: http://www.pip-installer.org/en/latest/contributing.html
.. _pip development: http://www.pip-installer.org/en/latest/development.html
.. _virtualenv repo: https://github.com/pypa/virtualenv/

Running the tests
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
@@ -0,0 +1,11 @@
[tox]
envlist =
py26,py27,py32,py33,pypy

[testenv]
deps =
nose
mock
commands =
nosetests -v tests
python virtualenv.py {envtmpdir}/test-venv-01
12 changes: 8 additions & 4 deletions virtualenv.py
Expand Up @@ -2,7 +2,7 @@
"""Create a "virtual" Python installation
"""

__version__ = "1.11"
__version__ = "1.11.1"
virtualenv_version = __version__ # legacy

import base64
Expand Down Expand Up @@ -286,7 +286,11 @@ def get_installed_pythons():
#"zipfile",
])
if minver >= 4:
REQUIRED_MODULES.extend(['operator', '_collections_abc'])
REQUIRED_MODULES.extend([
'operator',
'_collections_abc',
'_bootlocale',
])

if is_pypy:
# these are needed to correctly display the exceptions that may happen
Expand Down Expand Up @@ -942,7 +946,7 @@ def install_wheel(project_names, py_executable, search_dirs=None):

cmd = [
py_executable, '-c',
'import sys, pip; pip.main(["install"] + sys.argv[1:])',
'import sys, pip; sys.exit(pip.main(["install", "--ignore-installed"] + sys.argv[1:]))',
] + project_names
logger.start_progress('Installing %s...' % (', '.join(project_names)))
logger.indent += 2
Expand Down Expand Up @@ -1246,7 +1250,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
# OS X framework builds cause validation to break
# https://github.com/pypa/virtualenv/issues/322
if os.environ.get('__PYVENV_LAUNCHER__'):
os.unsetenv('__PYVENV_LAUNCHER__')
del os.environ["__PYVENV_LAUNCHER__"]
if re.search(r'/Python(?:-32|-64)*$', py_executable):
# The name of the python executable is not quite what
# we want, rename it.
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 9e7401c

Please sign in to comment.