Up to now we installed psutil via our custom pypi server.
Now we have a new environment where we should not install gcc.
Now the old way (pip starts gcc during install) does not work any more.
The context:
- Linux servers
- python inside virtualenv
- All code needs to be deployed from our data center (without internet access)
I see these alternatives:
RPM
Create a RPM. Since we already run our virtualenv with --system-site-packages
this works. This forces all virtualenvs on the server to use the same version of psutil
. But this would be no big problem.
Wheel
I have never used that.
Freeze
Use a tool like cx_freeze
. I have never done this before.
Other solution?
I guess there are other, maybe better, ways to solve this.
Background
psutil
is just an example in this case. The same question comes up for other python packages containing c-extensions. Imagine there are no RPMs here yet.