Hi, P.J. Eby schrieb:
> Second, Sourceforge has changed their pages again so that they no longer
> give direct links to downloadable files; instead, they link to a
> "downloading.php" which setuptools does not recognize as a downloadable
> file.
For my usecase I appended this to PackageIndex.process_url():
SF_ONCLICK =
re.compile(r"""onClick\s*=\s*"\s*init_download\(\s*'(.*?)'\);\s*\"""", re.I)
# handle sourceforge links
for match in SF_ONCLICK.finditer(page):
link = urlparse.urljoin(base, htmldecode(match.group(1)))
self.process_url(link)
This checks the onClick attribute.
Not nice, but works.
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
