<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 4, 2010, at 7:59 AM, Jonathan Lange wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="font-family: monospace; ">On Thu, Mar 4, 2010 at 10:45 AM, Mark van Lent<br>&lt;<a href="mailto:m.van.lent@zestsoftware.nl">m.van.lent@zestsoftware.nl</a>&gt; wrote:<br><blockquote type="cite">Hi everyone!</blockquote></span></blockquote><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-family: monospace; "><blockquote type="cite">I am a bit puzzled about the way new version of Twisted is released. Or<br></blockquote><blockquote type="cite">better: the way the old version seems to be taken out of service.<br></blockquote><blockquote type="cite">Last weeks I've been developing agains version Twisted 9.0.0. Yesterday I<br></blockquote><blockquote type="cite">wanted to deploy my code to my production server, but to my surprise I could<br></blockquote><blockquote type="cite">not easy_install that version anymore:<br></blockquote><blockquote type="cite">$ easy_install Twisted==9.0.0<br></blockquote><blockquote type="cite">Searching for Twisted==9.0.0<br></blockquote><blockquote type="cite">Reading&nbsp;<a href="http://pypi.python.org/simple/Twisted/">http://pypi.python.org/simple/Twisted/</a><br></blockquote><blockquote type="cite">Reading&nbsp;<a href="http://www.twistedmatrix.com">http://www.twistedmatrix.com</a><br></blockquote><blockquote type="cite">Reading&nbsp;<a href="http://twistedmatrix.com/products/download">http://twistedmatrix.com/products/download</a><br></blockquote><blockquote type="cite">Reading&nbsp;<a href="http://twistedmatrix.com/projects/core/">http://twistedmatrix.com/projects/core/</a><br></blockquote><blockquote type="cite">Reading&nbsp;<a href="http://twistedmatrix.com/">http://twistedmatrix.com/</a><br></blockquote><blockquote type="cite">No local packages or download links found for Twisted==9.0.0<br></blockquote><blockquote type="cite">Best match: None<br></blockquote><blockquote type="cite">(Okay, actually I'm using buildout to setup my environment, but the above<br></blockquote><blockquote type="cite">demonstrates my problem more clearly.)<br></blockquote><blockquote type="cite">I'm sure the new version of Twisted is better and improved but I still<br></blockquote><blockquote type="cite">wonder why version 9.0.0 has effectively been decommissioned. Or am I<br></blockquote><blockquote type="cite">missing something and is it still possible to easy_install version 9.0.0?<br></blockquote><br>It's an oversight.<font class="Apple-style-span" color="#000000" face="Menlo"><font class="Apple-style-span" color="#144FAE" face="monospace"><br></font></font></span></span></blockquote><div><br></div>I think it's actually a bug in easy_install, or at least a mis-design.</div><div><br></div><div>To make something easy_installable, you don't provide structured information in PyPI; there may be a way to do that, but most packages I've seen (Twisted included) just provide a link to a page which then provides a link to a file with a filename of vaguely the appropriate shape. &nbsp;easy_install works by screen-scraping that link.</div><div><br></div><div>In our case, the "home page", <a href="http://twistedmatrix.com">http://twistedmatrix.com</a>, links directly to a Twisted-&lt;version&gt;.tar.bz2, which is then used.</div><div><br></div><div>If someone (perhaps Mark van Lent!) could point us at how to provide the correctly structured information to easy_install via PyPI so it will _stop_ screen-scraping our website, and just point at the correct files, this problem could be addressed.</div><div><br></div><div>However, as exarkun says: screen-scraping a plain-text wiki and then executing code out of whatever comes out of it is not the most reliable or secure way to deploy code. &nbsp;You may want to specify the URL directly - you can still use easy_install for that if you want, like this:</div><div><br></div><div>&nbsp;&nbsp; &nbsp;$ easy_install <a href="http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/Twisted-9.0.0.tar.bz2">http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/Twisted-9.0.0.tar.bz2</a></div><div><br><blockquote type="cite"><span class="Apple-style-span" style="font-family: monospace; ">I don't know how the PyPI announcement was done (although I'd love&nbsp;to!), but I think you can announce new versions without&nbsp;decommissioning old ones.</span></blockquote></div><div><br></div><div>I assume you'll write it down on a web page, when you figure it out :).</div><div><br></div><div>The old version, from PyPI's perspective, wasn't decommissioned. &nbsp;It's here: &lt;<a href="http://pypi.python.org/pypi/Twisted/9.0.0">http://pypi.python.org/pypi/Twisted/9.0.0</a>&gt;. &nbsp;The problem is that it also just points at <a href="http://twistedmatrix.com">twistedmatrix.com</a>, not a version-specific download page, and there is no Twisted-&lt;version&gt;.tar.bz2 which matches "9.0.0" any more.</div><div><br></div><div>(I believe that another way to fix this, although I would be significantly less happy about it, would be to add some hidden links to <a href="http://twistedmatrix.com">twistedmatrix.com</a> that had the right filenames. &nbsp;If this is a real problem for many users though, perhaps we should just live with an ugly fix.)</div><div><br></div></body></html>