This software generates Gentoo Linux ebuilds by utilizing the Python Package Index.
The basic usage of g-pypi is very simple. To create ebuilds and ebuilds for dependencies, all you need to do is use the following command:
$ g-pypi package_name
If you want to output ebuilds to stdout, then run the following command:
$ g-pypi -p package_name
By default, the first overlay listed in /etc/make.conf PORTDIR_OVERLAY will be used. However, if you want to use a different one, you'll need to edit ~/.g-pypi/g-pypirc. Similarly, if you want to use a different KEYWORD, edit ~/.g-pypi/g-pypirc.
In case g-pypi is unable to figure out the PN, PV, MY_P, etc., you can override some variables using the following flags:
-n or --PN=package-name
-v or --PV=version
--MY_P=my_p
--MY_PN=my_pn
--MY_PV=my_pv
If you don't specify a portage category with '-c', the ebuild will be placed in dev-python.
To aid in debugging, you can use the '-V' flag for verbose output.
As for installation, g-pypi is readily available in pythonhead's public overlay. If you haven't emerged and configured app-portage/layman, here's how to do it:
$ emerge layman
$ echo "source /usr/portage/local/layman/make.conf" >> /etc/make.conf
Once that's done, simply run the following commands:
$ layman --add pythonhead
$ emerge g-pypi
Overall, if you're looking for a tool to help you build ebuilds for Gentoo Linux, g-pypi is definitely worth considering!
Version 0.2.1: N/A