471,328 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,328 software developers and data experts.

easy_install from svn

Hi all,

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?

cheers,

Rob Cowie

Jun 19 '07 #1
2 3848
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
Jun 19 '07 #2
On Jun 19, 8:13 pm, Stefan Behnel <stefan.behnel-n05...@web.dewrote:
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

Jun 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by TiNo | last post: by
reply views Thread by Norbert | last post: by
1 post views Thread by Charles Sanders | last post: by
reply views Thread by sween119 | last post: by
5 posts views Thread by makoto kuwata | last post: by
5 posts views Thread by Larry Bates | last post: by
reply views Thread by Salim Fadhley | last post: by
1 post views Thread by dmitrey | last post: by
reply views Thread by Orestis Markou | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.