Teach env-setup how to create egg-info for ansible so that pkg_resources works

This commit is contained in:
Toshio Kuratomi
2014-05-06 11:19:41 -07:00
parent 51dfd18e1f
commit 6a6060ac55
2 changed files with 35 additions and 1 deletions

View File

@@ -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'