[Distutils] Distutils / Setuptools on Windows: Can we use local or UNC filesystems as an argument to --find-links

Fadhley Salim fadhley.salim at uk.calyon.com
Tue Aug 12 19:23:15 CEST 2008


Phillip,

Thanks for your help - still no go!

Any time I give it a web URL (e.g. http://something) it works fine. If I
give it something else, it seems to get confused - there's no evidence
that it's even looking at my folder. 

I'm trying to do something like this:

easy_install -m calyon-tools==1.0-r2008-0630-trunk-3968
--find-packages="//sald441/webapps/eggs/tools_egg/"

The output is:

------------------------
interrupted
Searching for calyon-tools==1.0-r2008-06-30-trunk-3968
Reading http://pypi.python.org/simple/calyon-tools/
Download error: (10060, 'Operation timed out') -- Some packages may not
be found
!
Reading http://pypi.python.org/simple/calyon-tools/
Download error: (10060, 'Operation timed out') -- Some packages may not
be found
!
Couldn't retrieve index page for 'calyon-tools'
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: (10060, 'Operation timed out') -- Some packages may not
be found
!
No local packages or download links found for
calyon-tools==1.0-r2008-06-30-trun
k-3968
error: Could not find suitable distribution for
Requirement.parse('calyon-tools=
=1.0-r2008-06-30-trunk-3968')
------------------------

But just to confirm the folder definitely can be read from within
python:

>>> import os
>>> os.listdir(r"//sald441/webapps/eggs/tools_egg/")
['calyon_tools-1.0_r2008_06_30_trunk_3968-py2.4.egg']
>>>

Furthermore I can easy install that file explicitly - it definitely does
install:

D:\WORKSP~1\PYTHON~2\calyon_egg\dist>easy_install -m
\\sald441\webapps\eggs\tool
s_egg\calyon_tools-1.0_r2008_06_30_trunk_3968-py2.4.egg
Processing calyon_tools-1.0_r2008_06_30_trunk_3968-py2.4.egg
Copying calyon_tools-1.0_r2008_06_30_trunk_3968-py2.4.egg to
d:\python24\lib\sit
e-packages
Installing start_inspector.bat script to d:\Python24\Scripts
Installing runbatch-script.py script to d:\Python24\Scripts
Installing runbatch.exe script to d:\Python24\Scripts
Installing make_launchers-script.py script to d:\Python24\Scripts


Sal

-----Original Message-----
From: Phillip J. Eby [mailto:pje at telecommunity.com] 
Sent: 12 August 2008 17:17
To: Salim, Fadhley (CALYON); distutils-sig at python.org
Subject: RE: [Distutils] Distutils / Setuptools on Windows: Can we use
local or UNC filesystems as an argument to --find-links

At 04:41 PM 8/12/2008 +0100, Fadhley Salim wrote:
>What about using a network folder, e.g. a UNC path? Were you able to 
>get such a thing working ever?

I've heard of people using network folders; I'm not sure I've personally
tried a UNC path.  Keep in mind that command-line quoting/escaping can
foul up your backslashes, though, so I would suggest trying using '/' in
place of '\' in your command line.  That is, '//server/share' instead of
'\\server\share'.


>-----Original Message-----
>From: Phillip J. Eby [mailto:pje at telecommunity.com]
>Sent: 12 August 2008 16:15
>To: Salim, Fadhley (CALYON); distutils-sig at python.org
>Subject: Re: [Distutils] Distutils / Setuptools on Windows: Can we use 
>local or UNC filesystems as an argument to --find-links
>
>At 03:46 PM 8/12/2008 +0100, Fadhley Salim wrote:
> >Has anybody had any luck using the --find_options argument to 
> >easy_install with a local folder (e.g. on a Windows C: Drive) or a 
> >network folder, for example
> >
> >easy_install --find-links="http://server/egs" myegg==1.0.1 ( that 
> >sort of thing works fine )
>
>So should this:
>
> >easy_install --find-links="c:\myeggs\" myegg==1.0.1
>
>The file:// urls can work too, but they work differently than just 
>using a directory filename; they'll be checked at a later stage of
processing.
>And of course, they're harder to get right.  :)

-------------- 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 Commission Bancaire in France and regulated by 
the Financial Services Authority for the conduct of business in the 
United Kingdom. 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