mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Fix pre-commit when python-future is installed and a py3 virtualenv is being created
This commit is contained in:
parent
512a6a2c64
commit
895f08af6e
3 changed files with 4 additions and 2 deletions
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -46,7 +46,7 @@ setup(
|
|||
'ordereddict',
|
||||
'pyyaml',
|
||||
'simplejson',
|
||||
'virtualenv',
|
||||
'virtualenv-hax',
|
||||
],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue