Commit 02ba9731 authored by Godefroid Chapelle's avatar Godefroid Chapelle

Problem: pip install return code is not returned

Solution: pass it properly to buildout via a call to sys.exit
parent b145c6d1
Return code of pip install subprocess is now properly returned to buildout.
try:
try:
# support pip>=19.0
from pip._internal.cli.main import main
pip_install_cmd = 'from pip._internal.cli.main import main; main()'
pip_install_cmd = (
'from pip._internal.cli.main import main; sys.exit(main())'
)
except ImportError:
# support pip>=10.0
from pip._internal import main
pip_install_cmd = 'from pip._internal import main; main()'
pip_install_cmd = 'from pip._internal import main; sys.exit(main())'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment