Another pearl of wisdom from Ian, this time about easy_install/pip. Figured
I'd pass it along.

---------- Forwarded message ----------
From: Ian Bicking <[email protected]>
Date: Tue, Mar 3, 2009 at 11:22 AM
Subject: [venv] Re: pip feature request: support vcs urls in
dependency_links
To: [email protected]



On Mon, Feb 16, 2009 at 9:08 PM, daaku <[email protected]> wrote:
> Would it make sense to support specifying VCS URLs in dependency_links
> with the "#egg=NAME" syntax to support pulling dependencies named in
> install_requires direct from source? I'm not sure if there's already a
> way to achieve this.

There is an awkward way to do this, like:

setup(...
 install_requires=['DevPackage>=0.1-r1234,==dev'],
 dependency_links=['
http://location/DevPackage/tip.tar.gz#egg=DevPackage-dev'])

This gives the link a fake version of "dev", and says that either that
fake version is okay, or an explicit (but unfindable) version that
includes the revision (or might include a date or something, if you
aren't using svn).

It's a hack that works with easy_install and pip -- not pretty, but
workable, and at the moment I don't have a better idea.

--
Ian Bicking  |  http://blog.ianbicking.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"virtualenv" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]<python-virtualenv%[email protected]>
For more options, visit this group at
http://groups.google.com/group/python-virtualenv?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to