jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.09k stars 1.07k forks source link

support building python modules from a git source #1999

Open bugfood opened 1 year ago

bugfood commented 1 year ago

The makes the building of python modules support a git repo URL (and optional branch) the same way as currently done for ruby gems.

Example to build an old version of the requests module on AlmaLinux 8:

bin/fpm --verbose -s python -t rpm -f --architecture noarch --rpm-auto-add-directories --python-bin python3.6 --python-package-name-prefix python3 --python-pip /usr/bin/pip3.6  --python-git-repo https://github.com/psf/requests.git --python-git-branch v2.5.0 requests

Thanks, Corey