1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00
awx/requirements
2016-12-14 10:30:28 -05:00
..
README.md uninstall certifi if installed in venv's 2016-12-14 09:53:24 -05:00
requirements_ansible_uninstall.txt uninstall certifi if installed in venv's 2016-12-14 09:53:24 -05:00
requirements_ansible.in add vmware deps to ansible venv 2016-12-06 13:29:53 -05:00
requirements_ansible.txt fix gce and maybe azure cert issues 2016-12-13 17:11:44 -05:00
requirements_dev_uninstall.txt uninstall certifi if installed in venv's 2016-12-14 09:53:24 -05:00
requirements_dev.txt Optimize uwsgi launching in dev container and prod 2016-11-04 13:38:23 -04:00
requirements_tower_uninstall.txt uninstall certifi if installed in venv's 2016-12-14 09:53:24 -05:00
requirements.in remove pyzmq 2016-12-09 14:34:32 -05:00
requirements.txt fix gce and maybe azure cert issues 2016-12-13 17:11:44 -05:00

The requirements.txt and requirements_ansible.txt files are generated from requirements.in and requirements_ansible.in, respectively, using pip-tools pip-compile.

virtualenv /buildit
source /buildit/bin/activate
pip install pip-tools
pip install pip --upgrade

pip-compile requirements/requirements.in > requirements/requirements.txt
pip-compile requirements/requirements_ansible.in > requirements/requirements_ansible.txt

Known Issues

  • Remove the -e from packages of the form -e git+https://github.com... in the generated .txt. Failure to do so will result in a "bad" RPM and DEB due to the pip install laying down a symbolic link with an absolute path from the virtualenv to the git repository that will differ from when the RPM and DEB are build to when the RPM and DEB are installed on a machine. By removing the -e the symbolic egg link will not be created and all is well.

  • As of pip-tools 1.8.1 pip-compile does not resolve packages specified using a git url. Thus, dependencies for things like dm.xmlsec.binding do not get resolved and output to requirements.txt. This means that:

    • can't use pip install --no-deps because other deps WILL be sucked in
    • all dependencies are NOT captured in our .txt files. This means you can't rely on the .txt when gathering licenses.