ajones wrote: > Just a heads up to anyone trying to install 0.9 from behind a proxy, > setuptools hates you. Specifically it uses a socket call to try and > find a mirror to sourceforge, which fails if all of your network > requests have to go behind a proxy. I poked around for a while and > found no low hanging well documented fruit for another way of doing > this, so I just made the offending function (get_sf_ip) return the > domain name of a proxy instead. (easynews.dl.sourceforge.net for > example). I know this is the wrong way to do it, but have no clue how > the right way is supposed to happen.
Well, unfortunately there's no computer-readable interface (that I know of) for obtaining SF mirror names other than the round robin DNS, so I just used a socket call to get the IP addresses so I could select a random mirror. The reason I did this is that on some platforms (Windows in particular), the DNS cache prevents round-robin DNS from working properly. So, if you just use 'dl.sourceforge.net' and get a bad mirror, the bad mirror stays stuck until the DNS cache is cleared, which meant that people could be unable to do any SF downloads, whereas with the round robin approach, they could just rerun their command to try a different mirror if the first one doesn't work. So, I guess what I could do is trap the socket error and fall back to the dl.sourceforge.net address. That's the only way I can see to avoid having to keep a hardcoded list of mirror names in there. It means, however, that if your proxy has a sticky DNS cache that doesn't do round-robin, you will still be out of luck if/when you happen to get a bad mirror. > Anyways, two questions here. 1. Who do I get in contact with for > setuptools to make them aware of this? The distutils-sig mailing list is the appropriate forum for setuptools discussion. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

