Fix pre-commit when python-future is installed and a py3 virtualenv is being created

This commit is contained in:
Anthony Sottile 2015-08-12 11:23:25 -07:00
parent 512a6a2c64
commit 895f08af6e
3 changed files with 4 additions and 2 deletions

View file

@ -56,7 +56,7 @@ def install_environment(
# Install a virtualenv
with clean_path_on_failure(repo_cmd_runner.path(directory)):
venv_cmd = [
sys.executable, '-m', 'virtualenv',
sys.executable, '-m', 'virtualenv_hax',
'{{prefix}}{0}'.format(directory)
]
if version != 'default':

View file

@ -3,6 +3,8 @@
astroid<1.3.3
coverage
flake8
# To ensure py2 creating py3 virtualenv works under test
future
mock
pylint<1.4
pytest

View file

@ -46,7 +46,7 @@ setup(
'ordereddict',
'pyyaml',
'simplejson',
'virtualenv',
'virtualenv-hax',
],
entry_points={
'console_scripts': [