Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563534 - dev-python/packaging setup.py optionally uses setuptools without depending on it
Summary: dev-python/packaging setup.py optionally uses setuptools without depending on it
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-19 22:28 UTC by Mike Gilbert
Modified: 2015-10-20 03:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2015-10-19 22:28:16 UTC
This causes a file/directory collision when packaging is first installed using distutils and then reinstalled using setuptools.

ERROR: preinst

Installation of a directory is blocked by a file:
  '/usr/lib64/python3.5/site-packages/packaging-15.3-py3.5.egg-info'
This file will be renamed to a different name:
  '/usr/lib64/python3.5/site-packages/packaging-15.3-py3.5.egg-info.backup.0000'


The usual solution to this problem is to hard-depend on setuptools at build time. However, that would create a circular dependency in this case.

My suggestion would be to patch setup.py to never use setuptools. Upstream is likely to reject such a patch, so we would probably need to carry it at the distro level.
Comment 1 Mike Gilbert gentoo-dev 2015-10-20 03:11:08 UTC
commit 7db32bc8ba0e8f455c6a3222f6926299012674e9
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Oct 19 22:51:44 2015 -0400

    dev-python/packaging: Force setup.py to use distutils
    
    Bug: https://bugs.gentoo.org/563534
    
    Package-Manager: portage-2.2.23_p4

 ...ptools.patch => packaging-15.3-distutils.patch} | 18 +++++--------
 ...ing-15.3-r1.ebuild => packaging-15.3-r2.ebuild} | 15 ++++++++++-
 dev-python/packaging/packaging-15.3.ebuild         | 31 ----------------------
 3 files changed, 20 insertions(+), 44 deletions(-)