472,968 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,968 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 3948
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: TiNo | last post by:
Hi, I'm having problems installing easy_install. When I run python ez_setup.py I get: G:\python>python ez_setup.py 'import site' failed; use -v for traceback Downloading...
0
by: Norbert | last post by:
Hello list, just in the moment I wanted to write about then lacking documentation about Easy_Install, but then I found this one : http://www-128.ibm.com/developerworks/library/l-cppeak3.html. ...
1
by: Charles Sanders | last post by:
I am not sure if this is the right forum to ask this. If it is not, could someone pleas point me to a more appropriate newsgroup. I am attempting to install dap.plugins.netcdf using easy_install...
0
by: sween119 | last post by:
Hi all, I got easy_install to work a few times on my Mac, but now I want to put PyOpenGL in my ~/site-packages folder and now I am having a heckuva time getting anything to work. I've tried...
5
by: makoto kuwata | last post by:
Hi, I have a trouble around PyPI and easy_install. I have developed OSS (Tenjin) and registered it to PyPI. http://pypi.python.org/pypi/Tenjin/0.6.1 But I can't install it by 'easy_install'...
5
by: Larry Bates | last post by:
Info: Python version: ActivePython 2.5.1.1 Platform: Windows I wanted to install BeautifulSoup today for a small project and decided to use easy_install. I can install other packages just...
0
by: Salim Fadhley | last post by:
A project I'm working on requires a Python egg to be deployed to a remote location which (because of a security configuration outside my control) denies users web-access but allows users access to...
1
by: dmitrey | last post by:
Hi all, how to do easy_install <some packageto source code, not egg? (I don't mean "develop" option, it shouldn't call compiled egg-file). Thank you in advance, Dmitrey.
0
by: Orestis Markou | last post by:
Hello, I've finally uploaded PySmell to PyPI , thanks to a fantastic contributor which did all the work for me. As I've written in a blog post , I have some trouble distributing some support...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.