diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2014-05-06 20:19:41 +0200 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2014-05-06 20:19:41 +0200 |
commit | 6a6060ac5591a34386cdd03d1148d7063db77372 (patch) | |
tree | 870eefde96527c8c414b2ceac67d76c59afa320d /hacking/env-setup.fish | |
parent | Merge pull request #7301 from berendt/check_against_lowered_sha256sum (diff) | |
download | ansible-6a6060ac5591a34386cdd03d1148d7063db77372.tar.xz ansible-6a6060ac5591a34386cdd03d1148d7063db77372.zip |
Teach env-setup how to create egg-info for ansible so that pkg_resources works
Diffstat (limited to 'hacking/env-setup.fish')
-rw-r--r-- | hacking/env-setup.fish | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hacking/env-setup.fish b/hacking/env-setup.fish index 1613baeb14..0caa055efa 100644 --- a/hacking/env-setup.fish +++ b/hacking/env-setup.fish @@ -36,6 +36,16 @@ end set -gx ANSIBLE_LIBRARY $ANSIBLE_HOME/library +# Generate egg_info so that pkg_resources works +pushd $ANSIBLE_HOME +python setup.py egg_info +if test -e $PREFIX_PYTHONPATH/ansible*.egg-info + rm -r $PREFIX_PYTHONPATH/ansible*.egg-info +end +mv ansible*egg-info $PREFIX_PYTHONPATH +popd + + if set -q argv switch $argv case '-q' '--quiet' |