Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585146 - dev-python/six-1.10.0 fails to install with PYTHON_TARGETS="python3_4"
Summary: dev-python/six-1.10.0 fails to install with PYTHON_TARGETS="python3_4"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 573168 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-06 08:17 UTC by Dmitri Bogomolov
Modified: 2017-05-04 18:00 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,2.90 KB, text/plain)
2016-06-06 08:17 UTC, Dmitri Bogomolov
Details
emerge --info (emerge.info,7.27 KB, text/plain)
2016-06-09 09:40 UTC, Dmitri Bogomolov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Bogomolov 2016-06-06 08:17:08 UTC
Created attachment 436602 [details]
build.log

The message is:

ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

# emerge -pqv '=dev-python/six-1.10.0::gentoo'
[binary   R   ] dev-python/six-1.10.0  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_4* (-pypy) (-pypy3) -python3_3 (-python3_5)"
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-06-09 09:35:19 UTC
Please also add emerge --info.
Comment 2 Dmitri Bogomolov 2016-06-09 09:40:35 UTC
Created attachment 436940 [details]
emerge --info
Comment 3 Mike Gilbert gentoo-dev 2016-06-09 15:49:19 UTC
This is an odd one. It seems that portage is running the pkg_preinst phase from /usr/lib64/python2.7/site-packages, which seems a bit dangerous. It certainly does weird things to sys.path.
Comment 4 Mike Gilbert gentoo-dev 2016-06-09 16:21:06 UTC
This should fix it (I think).

commit 81fc70f986e26243b0d85c32700cab3157f2dd07
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Jun 9 12:01:39 2016 -0400

    dev-python/six: run pkg_preinst from /

    Bug: https://bugs.gentoo.org/585146

    Package-Manager: portage-2.3.0_rc1_p20

 dev-python/six/six-1.10.0.ebuild   | 1 +
 dev-python/six/six-1.9.0-r1.ebuild | 1 +
 2 files changed, 2 insertions(+)
Comment 5 Mike Gilbert gentoo-dev 2017-05-04 18:00:51 UTC
*** Bug 573168 has been marked as a duplicate of this bug. ***