473,473 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3972
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.