Discussion:
[melkjug-dev] Fwd: [venv] Re: pip feature request: support vcs urls in dependency_links
Joshua Bronson
2009-03-04 22:55:28 UTC
Permalink
Another pearl of wisdom from Ian, this time about easy_install/pip. Figured
I'd pass it along.

---------- Forwarded message ----------
From: Ian Bicking <ianb-***@public.gmane.org>
Date: Tue, Mar 3, 2009 at 11:22 AM
Subject: [venv] Re: pip feature request: support vcs urls in
dependency_links
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 python-virtualenv-/***@public.gmane.org
To unsubscribe from this group, send email to
python-virtualenv+unsubscribe-/***@public.gmane.org<python-virtualenv%2Bunsubscribe-/***@public.gmane.org>
For more options, visit this group at
http://groups.google.com/group/python-virtualenv?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...