From: Daniel J. <dan...@gm...> - 2010-09-28 19:04:46
|
On Sep 28, 2010, at 6:43 AM, Kurt Schwehr wrote: > Hi Daniel and python packagers, > > > I've added distribute to py2[4-7], given it a Provides setuptools, and Conflicts > > setuptools. > > If your package depends or builddepends on setuptools, please test it with > distribute. > > -kurt > (goatbar) > > ----- Original Message ---- > Sent: Tue, September 21, 2010 10:08:19 AM > Subject: Replace setuptools-py with distribute-py? > > I'm running into a problem packaging python packages that require distribute > instead of setuptools. To make matters worse, they will automatically download > distribute and try to replace an already installed setuptools! This seems to be > becoming common in the Python world. Fortunately, --build-as-nobody catches > this, but it also makes the packages uninstallable except on py31. Distribute is > > fully backward compatible with setuptools, so this shouldn't break anything, and > > in any case, setuptools is generally considered deprecated. > > Now there are a few packages that have a versioned BuildDepends on > setuptools-py, so simply relying on Provides: setuptools-py%type_pkg[python] > won't work unless we change those to unversioned BuildDepends. The other > possibility is to make an empty dummy setuptools-py%type_pkg[python] package > that simply Depends on distribute (and add 2.5, 2.6 and 2.7 types). That would > be the least work. > > Thanks > > Daniel > > > Thanks for the update, but it still doesn't install: The following package will be installed or updated: distribute-py27 Reading buildlock packages... All buildlocks accounted for. /sw/bin/dpkg-lockwait -i /sw/fink/dists/unstable/main/binary-darwin-x86_64/languages/distribute-py27_0.6.14-2_darwin-x86_64.deb dpkg: considering removing setuptools-py27 in favour of distribute-py27 ... dpkg: yes, will remove setuptools-py27 in favour of distribute-py27. (Reading database ... 137774 files and directories currently installed.) Unpacking distribute-py27 (from .../distribute-py27_0.6.14-2_darwin-x86_64.deb) ... /sw/bin/dpkg: error processing /sw/fink/dists/unstable/main/binary-darwin-x86_64/languages/distribute-py27_0.6.14-2_darwin-x86_64.deb (--install): cannot remove file `/sw/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info/zip-safe': Not a directory Errors were encountered while processing: /sw/fink/dists/unstable/main/binary-darwin-x86_64/languages/distribute-py27_0.6.14-2_darwin-x86_64.deb ### execution of /sw/bin/dpkg-lockwait failed, exit code 1 Failed: can't install package distribute-py27-0.6.14-2 Daniel |