On Fri, 12 May 2006, Ian Bicking wrote: > Mike Bernson wrote: >> I want to use eggs for a non-open source project. >> >> What I would like to do is create a page that has all the eggs for the >> project but >> is password. I would then like easy_install to be able to access this >> page. I see an >> option for adding a url to look at for find eggs. What I am missing is a >> way to >> supply this user and password for download. > > Does http://user:[EMAIL PROTECTED]/path work? If not, then perhaps it should.
urllib2 (which easy_install uses, at least last time I looked) doesn't support this syntax ATM (except for proxy auth), and it seems a shame to do anything to prolong its existence. Of course the reason for deprecating this (e.g. by RFC 3986) is that it has been used for spoofing. The RFCs never allowed it in http URLs, BTW. Perhaps ask interactively only if a --prompt-for-passwords option is passed? I suppose --user and --password options would be wrong, because easy_install wouldn't know which server to send the username and password to. John _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
