<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Hello Team,<br clear="all"></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">One of the customer wants to use the Python S2I Image ‘ubi7/python-36’ and ‘rhscl/python-36-rhel7’ with a local pypi mirror and pipenv.and they set the following env variables:<br><br>PIP_TRUSTED_HOST: pypi-mirror.mycompany.local<br>PIP_INDEX_URL: <a href="https://pypi-mirror.mycompany.local/artifactory/api/pypi/pypi.org/simple">https://pypi-mirror.mycompany.local/artifactory/api/pypi/pypi.org/simple</a><br>ENABLE_PIPENV: true<br><br>However, the installation of pipenv fails because it does not use the environment vars. According to the source of the assemble script of the python s2i image of python the following script is used.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br><a href="https://github.com/sclorg/s2i-python-container/blob/master/3.6/s2i/bin/assemble#L26">https://github.com/sclorg/s2i-python-container/blob/master/3.6/s2i/bin/assemble#L26</a><br><br>function install_pipenv() {<br>  echo "---> Installing pipenv packaging tool ..."<br>  VENV_DIR=$HOME/.local/venvs/pipenv<br>  virtualenv_bin "$VENV_DIR"<br>  $VENV_DIR/bin/pip --isolated install -U pipenv<br>  mkdir -p $HOME/.local/bin<br>  ln -s $VENV_DIR/bin/pipenv $HOME/.local/bin/pipenv<br>}<br>For the installation of pipenv, pip is using the --isolated option which ignores all environment vars.<br><br>Can we have a fix for this image to include the environment variables ?<br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,<br></div>

        <p style="font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:capitalize;font-family:RedHatText,sans-serif">Abhinay Purty<br></p>
        
        <p style="font-size:12px;margin:0px;text-transform:capitalize;font-family:RedHatText,sans-serif"></p><p style="font-size:12px;margin:0px;text-transform:capitalize;font-family:RedHatText,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;text-transform:none">Associate Technical Support Engineer</span></p><p style="font-size:12px;margin:0px;text-transform:capitalize;font-family:RedHatText,sans-serif"><a href="https://www.redhat.com" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat India Pvt. Ltd.</a><br></p>
    <div style="margin-bottom:4px">
      
      
    </div>
    <p style="margin:0px;font-size:12px;font-family:RedHatText,sans-serif">
      
      
      
    </p>
    
    

    
      
        
          <a href="https://red.ht/sig" target="_blank"> <img src="https://static.redhat.com/libs/redhat/brand-assets/latest/corp/logo.png" width="90" height="auto"></a></div></div></div>