Setuptools 0.8 and Distribute 0.7.3 (legacy wrapper) now released

60 views
Skip to first unread message

Jason R. Coombs

unread,
Jul 5, 2013, 2:05:19 PM7/5/13
to distut...@python.org, pypa-dev

The PyPA is excited to announce the public release of Setuptools 0.8. This release of setuptools provides no additional functionality over Setuptools 0.7.x except that it no longer requires 2to3 to build/install on Python 3. What this means for packaging is that tools like pip and virtualenv can now invoke setuptools directly on all supported Python versions (currently 2.4+). This build enables more natural upgrades and helps address many of the bugs that the 2to3 conversion process triggered.

 

Additionally, Distribute 0.7.3 has also been released to PyPI. Distribute 0.7 was designed to ease the upgrade process from Distribute 0.6.x to Setuptools 0.7. This new version, 0.7.3, is a re-release of the legacy wrapper 0.7, but additionally bundles the Setuptools 0.8 code for the purposes of bootstrapping the upgrade. This version specifically eases upgrades on systems running older systems. Now, one can readily upgrade any environment with Distribute 0.6 by simply upgrading (using pip or easy_install) to Distribute 0.7.3, which will replace the ‘distribute’ package with an empty shell leaving setuptools >= 0.7 (probably 0.8) installed.

 

Enjoy, and please report any issues with either of these packages at the Setuptools project page (https://bitbucket.org/pypa/setuptools).

Reinout van Rees

unread,
Jul 8, 2013, 6:29:40 AM7/8/13
to pypa...@googlegroups.com, Distut...@python.org
On 05-07-13 20:05, Jason R. Coombs wrote:
>
> Additionally, Distribute 0.7.3 has also been released to PyPI.
> Distribute 0.7 was designed to ease the upgrade process from Distribute
> 0.6.x to Setuptools 0.7. This new version, 0.7.3, is a re-release of the
> legacy wrapper 0.7, but additionally bundles the Setuptools 0.8 code for
> the purposes of bootstrapping the upgrade. This version specifically
> eases upgrades on systems running older systems. Now, one can readily
> upgrade any environment with Distribute 0.6 by simply upgrading (using
> pip or easy_install) to Distribute 0.7.3, which will replace the
> �distribute� package with an empty shell leaving setuptools >= 0.7
> (probably 0.8) installed.

I tried this on OSX and ran into a problem:

$ sudo pip install -U distribute
Password:
Downloading/unpacking distribute from
https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
Downloading distribute-0.7.3.zip (145Kb): 145Kb downloaded
Running setup.py egg_info for package distribute

Downloading/unpacking setuptools>=0.7 (from distribute)
Downloading setuptools-0.8.tar.gz (756Kb): 756Kb downloaded
Running setup.py egg_info for package setuptools

Installing collected packages: distribute, setuptools
Found existing installation: distribute 0.6.28
Uninstalling distribute:
Successfully uninstalled distribute
Running setup.py install for distribute

Found existing installation: distribute 0.6.28
Exception:
Traceback (most recent call last):
File
"/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line
104, in main
status = self.run(options, args)
File
"/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py",
line 250, in run
requirement_set.install(install_options, global_options)
File
"/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line
1129, in install
requirement.uninstall(auto_confirm=True)
File
"/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line
477, in uninstall

config.readfp(FakeFile(dist.get_metadata_lines('entry_points.txt')))
File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line
1213, in get_metadata_lines
File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line
1205, in get_metadata
File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line
1270, in _get
IOError: zipimport: can not open file
/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg


So it downloaded 0.7.3 just fine, but barfed on a non-zipfile distribute
0.6.28. The directory didn't exist afterwards, so I assume the upgrade
process somehow removed it (or it got confused because it was or wasn't
a zipfile).

Afterwards nothing pip-related worked as it missed setuptools.
The `/usr/bin/easy_install setuptools` also didn't work.

So I had to set it up anew, which worked:

$ wget https://bitbucket.org/pypa/setuptools/raw/0.8/ez_setup.py
$ sudo /usr/bin/python ez_setup.py




Reinout

--
Reinout van Rees http://reinout.vanrees.org/
rei...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

Reply all
Reply to author
Forward
0 new messages