I\'m having difficulties with the --global-option and --install-option settings for a requirements.txt file. Specifying the options for one library is causing other librarie
Your problem comes from the fact that PIP version on EC2 with EB is quite old and does not understand your options.
project_dir/.ebextensions/02-python.config:
...
commands:
01_upgrade_pip_for_venv:
command: "/opt/python/run/venv/bin/pip install --upgrade pip"
...
project_dir/requirements.txt:
...
pycurl==7.43.0 --global-option="--with-nss"
...
(This may be redundant) Set option in EB console user interfaces or by eb CLI with command:
eb setenv PYCURL_SSL_LIBRARY=nss
Push changes to repository and Rebuild. You may have errors since execution is controlled from external scope and started with old version of PIP. Entry point of execution is outside of app on EC2 instance so I'm not sure how to bring solution that would work from scope of hooks on first deployment... But all you have to do is to deploy again, and it will use proper version of PIP, so it will work from now on, till next rebuild...