When installing cryptography
package I get the following error:
Invalid environment marker: platform_python_implementation != 'PyPy'
It seems upgrading setuptools would solve this. Is there a way I could edit Build Config YAML file so that pip install --upgrade setuptools
runs before any package is built?
Run:
See:
When you do this it should update
pip
,setuptools
andwheel
packages.Only problem is that right at this minute, the changes that were made such that
setuptools
andwheel
were also updated aren't yet in RHEL based Python S2I images. So if you are using OpenShift Container Platform (as used by OpenShift Online), it will not work as required.First option to workaround that is to use the CentOS based images instead for now:
Second option is to add an executable shell script called
.s2i/bin/assemble
in your source code repo which contains:This will be executed instead of the normal
assemble
script, allowing you to install the updates. You then run the originalassemble
script.