Merge pull request #11112 from jkleckner/apply-10563

Apply #10563 to stable-1.9
This commit is contained in:
Brian Coca 2015-06-01 09:33:03 -04:00
commit bc44e85f58

View file

@ -41,11 +41,10 @@ expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_M
# Do the work in a function so we don't repeat ourselves later
gen_egg_info()
{
python setup.py egg_info
if [ -e "$PREFIX_PYTHONPATH/ansible.egg-info" ] ; then
rm -r "$PREFIX_PYTHONPATH/ansible.egg-info"
fi
mv "ansible.egg-info" "$PREFIX_PYTHONPATH"
python setup.py egg_info
}
if [ "$ANSIBLE_HOME" != "$PWD" ] ; then