[links] reading Daily Python
Robey Pointer
robey at lag.net
Fri May 12 01:38:48 BST 2006
On 11 May 2006, at 10:52, John A Meinel wrote:
> I think bzr should have a PyPI entry, and if possible, you should be
> able to use:
> easy_install bazaar-ng
>
> And get cElementTree, paramiko, pycurl, etc. (Pycurl may not be as
> important a dependency, but the other two are).
>
> Since Robey has one, maybe he knows what it takes to get a
> cheeseshop entry.
If I can do it, you know it's pretty easy. ;)
Both easy_install and cheeseshop require only trivial changes to
setup.py. Paramiko's is 62 lines long (including comments) so is
probably easier to read than any instructions.
With the right values in setup.py, notifying cheeseshop is just:
$ python ./setup.py register
easy_install is still somewhat controversial, so I tried to take a
middle ground. If you have setuptools installed (setuptools is the
easy_install library), then paramiko's setup.py will use that.
Otherwise it uses the old distutils. They are API compatible so the
only difference is that if setuptools is imported, I can specify
package requirements.
The end result is that if someone has setuptools, they will be able
to easy_install it, build the egg, and auto-download depenencies. If
they don't, they get the normal "setup.py" they're used to.
That's worked well enough for me that I recommend it.
robey
More information about the bazaar
mailing list