Bug#814571: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
On Feb 15, 2016, at 11:37 AM, Matthias Klose wrote: >No, in the first place it's a bug to not declare a proper Breaks/Replaces. Well, in the meantime, you uploaded a new version of python-setuptools, so the Breaks/Replaces that already exists in python-pip is now out of date. But if you agree to remove python-setuptools-whl in 20.0-3, I will update the B/R in python-pip to match it. >And yes, you asked me to remove the whl package, but without giving a reason >for it in your forward. Okay, but it was discussed fairly extensively in debian-python@ already, both in terms of the technology and the changes in Debian Python Policy, which are already committed to its vcs. But to re-iterate: Through the use of dirtbike, packages which require -whls will build them at their own build-time, but this is limited to pip and virtualenv. Because the dependencies of upstream pip change, this is the only viable option for sustainability. Thus the previous -whl packages sprinkled throughout the archive should now be removed. I've included the patch here. I'm not going to play whack-a-mole with this bug, but it will be fixed when python-setuptools-whl is removed. diff --git a/debian/control b/debian/control index 164dc1c..d969756 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,6 @@ Build-Depends: python-all, python3-all, python3-sphinx, - python3-wheel Build-Conflicts: python-setuptools, python3-setuptools Standards-Version: 3.9.6 Homepage: https://pypi.python.org/pypi/setuptools @@ -91,11 +90,3 @@ Depends: Suggests: python-setuptools-doc Description: PyPy Distutils Enhancements Extensions to the python-distutils for large or complex distributions. - -Package: python-setuptools-whl -Architecture: all -Depends: ${misc:Depends} -Description: Python Distutils Enhancements (wheel package) - Extensions to the python-distutils for large or complex distributions. - . - This package provides setuptools in PEP 427 wheel format. diff --git a/debian/rules b/debian/rules index d71db5a..564b847 100755 --- a/debian/rules +++ b/debian/rules @@ -17,10 +17,6 @@ override_dh_auto_install: $(MAKE) -C docs html - mkdir -p debian/python-setuptools-whl/usr/share/python-wheels - python3 setup.py bdist_wheel --universal \ - -d debian/python-setuptools-whl/usr/share/python-wheels - # dh_pypy from dh-python < 1.20150705-1 falls over requires.txt # and our requires.txt aren't useful find debian/tmp -name requires.txt -delete pgpSewR1SQdJx.pgp Description: OpenPGP digital signature
Processed: Re: Bug#814571: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
Processing commands for cont...@bugs.debian.org: > reassign 814571 python-pip Bug #814571 [python-setuptools] python-setuptools-whl and python-pip-whl: error when trying to install together Bug reassigned from package 'python-setuptools' to 'python-pip'. No longer marked as found in versions python-setuptools/20.0-2. Ignoring request to alter fixed versions of bug #814571 to the same values previously set > thanks Stopping processing here. Please contact me if you need assistance. -- 814571: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814571 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#814571: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
reassign 814571 python-pip thanks On 13.02.2016 19:00, Barry Warsaw wrote: On Feb 13, 2016, at 07:27 AM, Ralf Treinen wrote: Here is a list of files that are known to be shared by both packages (according to the Contents file for sid/amd64, which may be slightly out of sync): /usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl This bug has been filed against both packages. If you, the maintainers of the two packages in question, have agreed on which of the packages will resolve the problem please reassign the bug to that package. You may then also register in the BTS that the other package is affected by the bug. It is a bug in setuptools and I forwarded a patch to the maintainer. I'm happy to NMU it if preferred. No, in the first place it's a bug to not declare a proper Breaks/Replaces. And yes, you asked me to remove the whl package, but without giving a reason for it in your forward.
Bug#814571: [Python-modules-team] Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
On Feb 13, 2016, at 07:27 AM, Ralf Treinen wrote: >Here is a list of files that are known to be shared by both packages >(according to the Contents file for sid/amd64, which may be >slightly out of sync): > > /usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl > >This bug has been filed against both packages. If you, the maintainers of >the two packages in question, have agreed on which of the packages will >resolve the problem please reassign the bug to that package. You may then >also register in the BTS that the other package is affected by the bug. It is a bug in setuptools and I forwarded a patch to the maintainer. I'm happy to NMU it if preferred.
Bug#814571: python-setuptools-whl and python-pip-whl: error when trying to install together
Package: python-pip-whl,python-setuptools-whl Version: python-pip-whl/8.0.2-6 Version: python-setuptools-whl/20.0-2 Severity: serious User: trei...@debian.org Usertags: edos-file-overwrite Date: 2016-02-13 Architecture: amd64 Distribution: sid Hi, automatic installation tests of packages that share a file and at the same time do not conflict by their package dependency relationships has detected the following problem: Selecting previously unselected package python-pip-whl. (Reading database ... 10940 files and directories currently installed.) Preparing to unpack .../python-pip-whl_8.0.2-6_all.deb ... Unpacking python-pip-whl (8.0.2-6) ... Selecting previously unselected package python-setuptools-whl. Preparing to unpack .../python-setuptools-whl_20.0-2_all.deb ... Unpacking python-setuptools-whl (20.0-2) ... dpkg: error processing archive /var/cache/apt/archives/python-setuptools-whl_20.0-2_all.deb (--unpack): trying to overwrite '/usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl', which is also in package python-pip-whl 8.0.2-6 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/python-setuptools-whl_20.0-2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) This is a serious bug as it makes installation fail, and violates sections 7.6.1 and 10.1 of the policy. An optimal solution would consist in only one of the packages installing that file, and renaming or removing the file in the other package. Depending on the circumstances you might also consider Replace relations or file diversions. If the conflicting situation cannot be resolved then, as a last resort, the two packages have to declare a mutual Conflict. Please take into account that Replaces, Conflicts and diversions should only be used when packages provide different implementations for the same functionality. Here is a list of files that are known to be shared by both packages (according to the Contents file for sid/amd64, which may be slightly out of sync): /usr/share/python-wheels/setuptools-20.0-py2.py3-none-any.whl This bug has been filed against both packages. If you, the maintainers of the two packages in question, have agreed on which of the packages will resolve the problem please reassign the bug to that package. You may then also register in the BTS that the other package is affected by the bug. -Ralf. PS: for more information about the detection of file overwrite errors of this kind see http://qa.debian.org/dose/file-overwrites.html.