|
From: Michael F. <fuz...@vo...> - 2007-01-31 14:21:55
|
Robin Munn wrote: > "easy_install ConfigObj" doesn't work if you're using Python 2.5. > There's no .egg for 2.5 linked from the > http://www.python.org/pypi/ConfigObj/ page, so setuptools downloads > the source and tries to run "setup.py -q bdist_egg --dist-dir > /tmp/easy_install-kjBHsO/egg-dist-tmp-wnCMdZ" instead. But that fails > with TypeError: "compile() expected string without null bytes". When I > run the same setup.py command by hand from inside the configobj-4.3.2 > directory, I get: > > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] > or: setup.py --help [cmd1 cmd2 ...] > or: setup.py --help-commands > or: setup.py cmd --help > > error: invalid command 'bdist_egg' > > What would it take to get ConfigObj using a setup.py that's setuptools-aware? > Hello Robin, I think that to use ConfigObj with Python 2.5 you will need the version from subversion anyway. There is a rogue '__future__' important which is in the right place in subversion, but in the wrong place in the latest release. I should probably do a new release because Nicola has made several good changes since the last release. I've been very distracted recently though. As for eggs... well seeing that installing ConfigObj is a difficult as dropping one file somewhere on your path I never got round to doing that. I only uploaded the 2.4 eggs to stop the turbogears folk crying. ;-) As setuptools seems to be maturing nicely (and is very nice to use) I should probably fix this. I'll be going to a setuptools talk at PyCon, so hopefully this will motivate me to sort it out. All the best, Michael Foord http://www.voidspace.org.uk/python/articles.shtml |