Python 2.6.3 is out, will a lot of bugs fixed. I had my share with Distutils and fixed quite a few, and 2.6.3 is looking very good so far !
Just a quick note for Setuptools users: you might bump into a problem if you provide a C extension. The setuptools code makes some assumptions on how and in which order the Distutils build_ext API are called. It also overrides some of these API to do some internal extra work. In other words, the way Setuptools patches Distutils makes it very sensitive to any internal Distutils code changes. In this particulare case you might have this bug:
File "...setuptools/command/build_ext.py", line 85, in get_ext_filename KeyError: 'xxx'
The fix is quite simple, it can be done by the end-user or in your package (which is better of course).
- In your package : use “Distribute >= 0.6.3″ distribution instead of the usual “Setuptools == 0.6c9″ distribution in you dependencies list. The code remain unchanged and you can still “import setuptools” and have it working fine.
- As an end-user: just do a Distribute installation and your fine “(sudo) easy_install Distribute”
Hang in #distutils on Freenode, or drop a mail in distutils-SIG in case you have a problem.
Just to make things clear: The Distribute 0.6.x series is a mirror of Setuptools 0.6c9 code, with bug fixes.



A few days ago i replaced UHU-Linux’s setoptools package to distribute in the dev branch.
(The package name was not changed, just it ships distribute inside now.)
Then i packaged Python 2.6.3 when it was released.
Seems i’m luky
Comment by btami — October 3, 2009 @ 4:18 pm |
Great, let us know how it goes
Comment by Tarek Ziadé — October 5, 2009 @ 11:11 am |
I’v just updated another 2 python packages, without any problem.
(beaker, jinja2)
Comment by btami — October 5, 2009 @ 2:42 pm
Argh, “sudo easy_install …” again
Comment by Piotr Ożarowski — October 5, 2009 @ 7:42 am |
when you install something on your Python you have to have the privileges. Same goes for “python setup.py install” or “apt-get install”. If you don’t want to do this you can use virtualenv or a per-user site packages (PEP 374).
Comment by Tarek Ziadé — October 5, 2009 @ 11:10 am |
I meant you should not encurage users to break FHS (Filesystem Hierarchy Standard). By doing this, they can damage their system (and waste lots of work done by distro maintainers to glue all the modules and applications together)
Comment by Piotr Ożarowski — October 5, 2009 @ 1:16 pm
Hi Tarek,
That’s what prevent compiling Zope 2.12 (that requires Python 2.6). Thanks for this.
Comment by Gilles Lenfant — October 5, 2009 @ 10:04 am |
Hi Gilles,
Yes, and since Distribute is a mirror, you shouldn’t hit any problem using it in this Python environment.
Comment by Tarek Ziadé — October 5, 2009 @ 11:13 am |
Why a fork, fake setuptools and workarounds, was it really not possible to take over setuptools from the original author?
Comment by menesis — October 6, 2009 @ 11:46 am |
I found an answer in the discussion — http://mail.python.org/pipermail/distutils-sig/2009-August/012884.html — and no doubt there are more posts like this.
Comment by menesis — October 6, 2009 @ 12:16 pm |
@menesis: unfortunately not. Because he didn’t bless anyone currently active in this area in the community. That’s why we have forked, and that’s why our main problems are related to bootstraping wrt to Setuptools users.
Comment by Tarek Ziadé — October 6, 2009 @ 12:23 pm |
[...] Python 2.6.3 and Distribute. « Fetchez le Python a few seconds ago from xmpp [...]
Pingback by Uche Ogbuji (uche) 's status on Saturday, 10-Oct-09 20:12:19 UTC - Identi.ca — October 10, 2009 @ 8:12 pm |