Don't tie awx-manage to a particular dev environment version

This commit is contained in:
Matthew Jones 2017-07-25 09:40:23 -04:00
parent 6335953376
commit 1e27bad010
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,10 @@
#!/venv/awx/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'ansible-awx==placeholder','console_scripts','awx-manage'
__requires__ = 'ansible-awx==placeholder'
# EASY-INSTALL-ENTRY-SCRIPT: 'ansible-awx','console_scripts','awx-manage'
__requires__ = 'ansible-awx'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('ansible-awx==placeholder', 'console_scripts', 'awx-manage')()
load_entry_point('ansible-awx', 'console_scripts', 'awx-manage')()
)

View File

@ -23,7 +23,6 @@ fi
cp -R /tmp/ansible_awx.egg-info /awx_devel/ || true
sed -i "s/placeholder/$(git describe --long | sed 's/\./\\./g')/" /awx_devel/ansible_awx.egg-info/PKG-INFO
sed -i "s/placeholder/$(git describe --long | sed 's/\./\\./g')/" /usr/local/bin/awx-manage
cp /tmp/ansible-awx.egg-link /venv/awx/lib/python2.7/site-packages/ansible-awx.egg-link
ln -s /awx_devel/tools/rdb.py /venv/awx/lib/python2.7/site-packages/rdb.py || true
yes | cp -rf /awx_devel/tools/docker-compose/supervisor.conf /supervisor.conf