Bug 1841001
Summary: | RFE: Allow installation of pipenv from a specified PIP_INDEX_URL in Python S2I Image ‘ubi7/python-36’ and ‘rhscl/python-36-rhel7’ | ||
---|---|---|---|
Product: | Red Hat Software Collections | Reporter: | Abhinay Purty <apurty> |
Component: | rh-python36-container | Assignee: | Lumír Balhar <lbalhar> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | rhscl image testing <rhscl-container-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rh-python36 | CC: | cstratak, hhorak, lbalhar, lkuprova, pkubat, torsava |
Target Milestone: | alpha | Keywords: | FutureFeature |
Target Release: | 3.6 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: |
Documented in Bug 1847416
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-14 09:02:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Abhinay Purty
2020-05-28 06:01:01 UTC
Hi Abhinay, thank you for filing the issue. As we discussed in the email thread, it's not really a problem of the environment variable not being respected, it was not intended to be used for the installation of pipenv. However, we can look into adding that functionality. Could you please attach the customer ticket? Oh I'm sorry, I see the customer ticket now :) Implementation ready for review: https://github.com/sclorg/s2i-python-container/pull/387 I have a question. When we finish this implementation the updated images will be very quickly available for Fedora (as updates). Will you be able to test them? Centos images with this feature are released. Could you please test them? Unfortunately, this feature is still not released. A new version of ubi7/python-36 container image should be available this week. This feature is now available in the latest release of ubi7 container images. Tested with ubi7/python-36 and ubi7/python-38. If you specify `PIP_INDEX_URL` in .s2i/environment file, pip uses it during the build (in assemble script). If the installation from a custom index fails, the script tries to do it again with `--isolated` which ignores custom settings and installs packages from the official PyPI. From the log: ---> Installing pipenv packaging tool ... Looking in indexes: https://example.com/ ERROR: Could not find a version that satisfies the requirement pipenv (from versions: none) ERROR: No matching distribution found for pipenv WARNING: Installation of pipenv failed, trying again from official PyPI with pip --isolated install Collecting pipenv ... Installing collected packages: virtualenv-clone, certifi, filelock, distlib, six, appdirs, virtualenv, pipenv Successfully installed appdirs-1.4.4 certifi-2020.6.20 distlib-0.3.1 filelock-3.0.12 pipenv-2020.8.13 six-1.15.0 virtualenv-20.0.33 virtualenv-clone-0.5.4 As the feature is available in latest released images, closing the BZ with CURRENTRELEASE. Feel free to reopen if you run into any issues. |