Avoid system site packages and add more setup things

This commit is contained in:
AlanCoding 2019-12-12 14:56:01 -05:00
parent 7873d08311
commit 3dc8c789fb
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B
2 changed files with 19 additions and 11 deletions

View File

@ -136,12 +136,10 @@ virtualenv_ansible:
mkdir $(VENV_BASE); \
fi; \
if [ ! -d "$(VENV_BASE)/ansible" ]; then \
virtualenv -p python --system-site-packages $(VENV_BASE)/ansible && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) six packaging appdirs && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) setuptools==42.0.1 && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) pip==19.3.1 && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) wheel==0.33.6; \
fi; \
virtualenv -p python $(VENV_BASE)/ansible && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) pip==19.3.1 setuptools==42.0.1 wheel==0.33.6 && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) flit poetry twine; \ # undeclared setup_requires
fi; \ # TODO: re-enable system site packages
fi
virtualenv_ansible_py3:
@ -150,11 +148,10 @@ virtualenv_ansible_py3:
mkdir $(VENV_BASE); \
fi; \
if [ ! -d "$(VENV_BASE)/ansible" ]; then \
$(PYTHON) -m venv --system-site-packages $(VENV_BASE)/ansible && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) setuptools==42.0.1 && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) pip==19.3.1 && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) wheel==0.33.6; \
fi; \
$(PYTHON) -m venv $(VENV_BASE)/ansible && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) pip==19.3.1 setuptools==42.0.1 wheel==0.33.6 && \
$(VENV_BASE)/ansible/bin/pip install $(PIP_OPTIONS) flit poetry twine; \ # undeclared setup_requires
fi; \ # TODO: re-enable system site packages
fi
virtualenv_awx:

View File

@ -7,3 +7,14 @@ virtualenv
m2r
twine # from python-daemon
wheel==0.33.6
cffi>=1.1
wheel>=0.33.6
backports.functools_lru_cache
more-itertools==5.0.0
poetry
functools32<4.0.0,>=3.2.3; python_version >= "2.7" and python_version < "2.8"
flit; python_version >= "3.5"
twine; python_version >= "3.6"
incremental>=16.10.1; python_version >= "3.6"
lxml>=3.0; python_version >= "3.6"
pkgconfig; python_version >= "3.6"