diff --git a/requirements.txt b/requirements.txt index 791ab05826..e534f4af85 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ pbr>=1.1.0 -# Newer virtualenv has different behavior and arguments -virtualenv>=20.0.0 +# Early virtualenv 20 had bad file location assumptions +virtualenv!=20.0.0,!=20.0.1 github3.py>=1.1.0 PyYAML>=3.1.0 diff --git a/zuul/lib/ansible.py b/zuul/lib/ansible.py index 66d69e0314..2671c4593b 100644 --- a/zuul/lib/ansible.py +++ b/zuul/lib/ansible.py @@ -94,7 +94,7 @@ class ManagedAnsible: # We don't use directly the venv module here because its behavior is # broken if we're already in a virtual environment. cmd = [sys.executable, '-m', 'virtualenv', - '-p', python_executable, '--seeder=pip', venv_path] + '-p', python_executable, venv_path] p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if p.returncode != 0: