[Pythonmac-SIG] For your eyes only: new 2.3rc1+ installer
Ronald Oussoren
oussoren at cistron.nl
Thu Jul 24 23:02:34 EDT 2003
On Thursday, 24 July, 2003, at 07:32, Andrew Straw wrote:
> On Thursday, Jul 24, 2003, at 00:02 Europe/Berlin, Jack Jansen wrote:
>
>>
>> On woensdag, jul 23, 2003, at 23:00 Europe/Amsterdam, Chris Lee wrote:
>>
>>> You probably already know this but the package manager doesn't
>>> manage to get through firewalls.
>>
>> No, I didn't know this! Code was added before 2.3b1 to make it go
>> through firewalls (basically using urllib2 in stead of urllib, which
>> should be firewall-aware. This definitely needs to be fixed, or at
>> the very least warned about.
>
> It does work. Set the environment variable http_proxy:
Using InternetConfig would be more appropriate,
import ic
conf = ic.IC()
if conf['UseHTTPProxy']:
http_proxy = conf['HTTPProxyHost']
# Setting the proxy in urllist2 left as an exercise for the reader
Ronald
More information about the Pythonmac-SIG
mailing list