By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,714 Members | 1,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,714 IT Pros & Developers. It's quick & easy.

easy_install from svn

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.