[Distutils] Getting eggs from with user, password

Phillip J. Eby pje at telecommunity.com
Fri May 12 23:58:52 CEST 2006


At 04:11 PM 5/9/2006 -0400, 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.
>
>Am I missing something here or is not possible to have password to protect the
>page where some eggs exist ?

If you want to implement this in an upgrade tool of your own, you can 
subclass PackageIndex (in setuptools.package_index) and then use that as 
the package index for an easy_install command instance.  You would need to 
have the download code check for a 401 and prompt the user to enter their 
ID and password.

If you send me working code, I'll see if I can incorporate a similar 
feature back into the standard easy_install release, but I'd like to do it 
in such a way that easy_install remains non-interactive by default.



More information about the Distutils-SIG mailing list