easy_install from svn

Rob Cowie cowie.rob at gmail.com
Tue Jun 19 19:20:19 EDT 2007


On Jun 19, 8:13 pm, Stefan Behnel <stefan.behnel-n05... at web.de> wrote:
> Rob Cowie wrote:
> > I currently use easy_install to install packages from a custom,
> > locally hosted package_index. The index consists of a single html doc
> > with a list of package names and urls. All works well.
>
> > I would like to get a little more sophisticated and install a package
> > from subversion.
>
> > My package is structured as described in the setuptools docs.
>
> > Simply pointing the url in my package index to svn://my/repo/package/trunk
> > works, but I would like - and I get the impression it is possible - to
> > be able to specify a revision number, or a tag and have that version
> > installed.
>
> > Is it simply a case of appending a fragment to the url?
> > Would anyone be so kind as to provide a working example?
>
> This is how we do it for lxml:
>
> http://cheeseshop.python.org/pypi/lxml/1.2.1
>
> Stefan

Thanks.

I guess I was wrong in thinking that one could add a revision number
to the url fragment and have easy_install get that revision.
Instead, I should explicitly specify the urls in the package index
(and/or setup.py) and identify them with the fragment.

So, to make a head version and a tag available, the following urls
must be in the package index:

svn://svn/my/repo/package/trunk#egg=package-dev
svn://svn/my/repo/package/tags/r1.0#egg=package-1.0

and install them thus...

easy_install -i http://may/index package==dev | package==1.0

cheers,

Rob Cowie




More information about the Python-list mailing list