5 `http://code.google.com/p/g-pypi/ <http://code.google.com/p/g-pypi/>`_
7 g-pypi creates Python package ebuilds for Gentoo Linux by querying The Cheese Shop.
9 Although it's in the early stages of development, testing has generated over 1,200 ebuilds automatically.
11 Note: g-pypi will only be as good at creating ebuilds as The Python Package Index information is. People can leave out a lot of information when submitting info to PyPI, making ebuild creation impossible.
17 Output ebuild to stdout:
21 g-pypi -p package_name
24 Write ebuild to your overlay:
30 Create live svn ebuild (if subversion URI is listed in PyPI):
34 g-pypi -s package_name
36 By default your first overlay listed in /etc/make.conf PORTDIR_OVERLAY
37 is used. If you want to use a different one, edit ~/.g-pypirc
39 By default your first KEYWORD listed in /etc/make.conf KEYWORDS
40 is used. If you want to use a different one, edit ~/.g-pypirc or prefix your command with ACCEPT_KEYWORDS e.g.
44 $ ACCEPT_KEYWORDS='~amd64' g-pypi foopkg
47 You can over-ride some variables if g-pypi can't figure out the
53 -n or --PN=package-name
64 If you don't specify a portage category with '-c' the ebuild will be
67 Use '-V' for verbose output for debugging.
73 Use nose_ to run unitests::
75 $ PYTHONPATH=.:../gentoolkit/pym nosetests tests/test_enamer.py
77 Note that some of the tests in :file:`tests` run on all PyPI packages,
78 so it's good to glance at a given test's docstring before you run it.
80 .. _nose: http://somethingaboutorange.com/mrl/projects/nose/
86 g-pypi is available in my overlay directory.
88 If you haven't emerged and configured app-portage/layman::
91 # layman --add pythonhead
92 # echo "source /var/lib/layman/make.conf" >> /etc/make.conf
95 If you have emerged and configured app-portage/layman::
97 # layman --add pythonhead
104 To run ``g-pypi`` without portage permissions, you can try something like
106 DISTDIR=/tmp PORTAGE_TMPDIR=/tmp g-pypi -Y ~/my/overlay <package_name[==version]>
108 Which will do all the requisite mucking about in the :file:`/tmp`
109 directory, which your average user can write to. Note that you *will*
110 need to be part of the ``portage`` group. I'm not sure how to work
116 `subversion repository <http://g-pypi.googlecode.com/svn/trunk/#egg=g-pypi-dev>`_
118 Hint: You can use to create a live svn ebuild for g-pypi ;)