Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing pip in an RPM environment

For our prod apps, we manage all packages in RPM. In a perfect yum-only world, this is fine.

However, each language or framework recently are deploying their own package managers. For python for example, I am almost always using pip and then having to build the packages for rpm again when going to production. Same goes for npm or gems.

Is this an issue that a lot of people here are running into? What is best way to avoid all this? Are people dealing with this by just sucking it up and packaging everything manually, or is there some automated way to integrate them?

I would love to hear thoughts on this.

like image 274
darksky Avatar asked Jan 17 '14 18:01

darksky


1 Answers

I have used pyp2rpm to build rpm package for rstr module and I dislike random installations of some files via pip as well:

pyp2rpm -n rstr > ~/rpmbuild/SPECS/rstr.spec
rpmbuild -ba ~/rpmbuild/SPECS/rstr.spec

but I do not know if this is good enough for your production use.

like image 128
jhutar Avatar answered Sep 30 '22 03:09

jhutar