the svn >= 1.5 bug with setuptools/command/sdist.py: global name 'log' is not defined
This was brought up a while back by someone working with experimental svn 1.6: http://mail.python.org/pipermail/distutils-sig/2008-February/008794.html But I'm not sure it was addressed, and now we're getting the same problem here with svn 1.5.1. This same fix fixes it: --- sdist.py.vanilla 2008-08-18 20:54:07.000000000 -0700 +++ sdist.py 2008-08-18 20:12:11.000000000 -0700 @@ -1,5 +1,6 @@ from distutils.command.sdist import sdist as _sdist from distutils.util import convert_path +from distutils import log import os, re, sys, pkg_resources entities = [ But I'm not sure it's the best one. It's definitely good that this fix should address the problem once and for all (i.e. no re-break on future svn versions), but maybe there is a better larger fix. I think it should be addressed somehow though since svn 1.5.1 is now the latest release. Thanks, --dan
-On [20080819 06:19], dan corson (dcorson@facebook.com) wrote:
But I'm not sure it was addressed, and now we're getting the same problem here with svn 1.5.1.
easy_install -U setuptools==dev -- Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B I disagree with everything you say. But I will defend to the death your right to say it.
On Tue, Aug 19, 2008 at 07:29, Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> wrote:
-On [20080819 06:19], dan corson (dcorson@facebook.com) wrote:
But I'm not sure it was addressed, and now we're getting the same problem here with svn 1.5.1.
easy_install -U setuptools==dev
I would like to know why 0.7 (or 0.6c9) is not out. This solution is not clean, and doesn't work with Buildout. Are there any unrelsolved bugs ? -- Seb
On Tue, Aug 19, 2008 at 2:44 PM, Sebastien Douche <sdouche@gmail.com> wrote:
On Tue, Aug 19, 2008 at 07:29, Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> wrote:
-On [20080819 06:19], dan corson (dcorson@facebook.com) wrote:
But I'm not sure it was addressed, and now we're getting the same problem here with svn 1.5.1.
easy_install -U setuptools==dev
I would like to know why 0.7 (or 0.6c9) is not out. This solution is not clean, and doesn't work with Buildout.
It should work with: [buildout] .. versions = versions [versions] setuptools = dev *But* it doesn't because of a bug I mentioned a few months ago: In setuptools's package_index module, the _download_url determines a filename using the last part of the URL: 'http://svn.python.org/projects/sandbox/trunk/setuptools/#egg=setuptools-dev ' becomes 'setuptools' and it goes to your download folder at: '..downloads/dist/setuptools' But this is also the name used by zc.buildout to decompress the package :) leading to an error, in the next attempt do get setuptools: IOError: [Errno 21] Is a directory: '.../downloads/dist/setuptools' In any case, this setuptools behaviour is bad, because if your url is: 'http://svn.example.org/your/package/trunk' It will end up in a "trunk" folder. And if you have two packages that points to an url finishing with "trunk" it will fail. So, setuptools should use a random, unique, temporary name in this function imho to make buildout happy with any kind of dev package.
Are there any unrelsolved bugs ?
setuptools has its own tracker here : http://bugs.python.org/setuptools
-- Seb _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
participants (4)
-
dan corson -
Jeroen Ruigrok van der Werven -
Sebastien Douche -
Tarek Ziadé