[Distutils] Using UNC paths as arguments to --find-links

Fadhley Salim fadhley.salim at uk.calyon.com
Mon Mar 16 16:35:07 CET 2009


I'd like to do something like this:
 
http://python.pastebin.com/m283c0376
 
Basically, I'm invoking the easy_install command from a script. Where I
specify a number ofn arguments to the --find-links option, some of which
will be web-servers and at least one will be a local filesystem path, or
possibly a network path un UNC format. 
 
It seems to work just fine when I do not provide a --find-links option
(in this case it just picks up the defaults from distutils.cfg), when I
use the option all I get is:
 
Traceback (most recent call last):
  File
"D:\workspace\pythonscripts_trunk\javapy_egg\Scripts\test_javapy.py",
line 20, in ?
    result = pyproxy.requireEgg( eggspec , True, hosts )
  File
"d:\workspace\pythonscripts_trunk\javapy_egg\src\calyon\javapy\pyproxy.p
y", line 141, in requireEgg
    pkg_resources.require(eggname)
  File
"d:\python24\lib\site-packages\setuptools-0.6c9-py2.4.egg\pkg_resources.
py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File
"d:\python24\lib\site-packages\setuptools-0.6c9-py2.4.egg\pkg_resources.
py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: myproject==trunk-99
 
Can somebody confirm the correct way to do this? For example do I use
Windows or UNIX slashes? What character must be used to seperate
multiple URLs? 
 
I'm using setuptools 0.6c9 on Windows32
 
Thansk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090316/2e70765a/attachment.htm>
-------------- next part --------------
This email does not create a legal relationship between any member of the 
Cr?dit Agricole group and the recipient or constitute investment advice. 
The content of this email should not be copied or disclosed (in whole or 
part) to any other person. It may contain information which is 
confidential, privileged or otherwise protected from disclosure. If you 
are not the intended recipient, you should notify us and delete it from 
your system. Emails may be monitored, are not secure and may be amended, 
destroyed or contain viruses and in communicating with us such conditions 
are accepted. Any content which does not relate to business matters is not 
endorsed by us.

Calyon is authorised by the Comit? des Etablissements de Cr?dit et des
Entreprises d'Investissement (CECEI) and supervised by the Commission Bancaire
in France and subject to limited regulation by the Financial Services Authority.
Details about the extent of our regulation by the Financial Services Authority
are available from us on request. Calyon is incorporated in France with limited
liability and registered in England & Wales. Registration number: FC008194.
Registered office: Broadwalk House, 5 Appold Street, London, EC2A 2DA.



More information about the Distutils-SIG mailing list