diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-09 16:05:28 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-09 16:39:08 -0600 |
| commit | 04e57e76844d7ca70d5b1a84d9b30dba1d6bee9c (patch) | |
| tree | 05f9cf6e795b8acb54f8b7df87972588bfa38a23 /lib/license/management/python.rb | |
| parent | dda9e59a4a3ab471001998d0e68d67ab12b4ac69 (diff) | |
Specify PIP_CERT when installing pip packages
* Add CHANGELOG entry
* Move method `default_env` to Python class
Diffstat (limited to 'lib/license/management/python.rb')
| -rw-r--r-- | lib/license/management/python.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/license/management/python.rb b/lib/license/management/python.rb index c5f7107..b8932f9 100644 --- a/lib/license/management/python.rb +++ b/lib/license/management/python.rb @@ -50,6 +50,12 @@ module License ) end end + + def default_env + return {} unless shell.custom_certificate_installed? + + { 'PIP_CERT' => ENV.fetch('PIP_CERT', shell.custom_certificate_path.to_s) } + end end end end |
