Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: Brian Dolbec <dolsen@g.o>
Cc: gentoo-python <gentoo-python@l.g.o>
Subject: Re: [gentoo-python] twisted-r1.eclass postrm failure for new twisted ebuilds
Date: Thu, 29 Sep 2016 16:07:39
Message-Id: CAJ0EP43MyxCZBPappi9PhQdwJ9KEG44s4sPuaUbN0a-6AjtbkA@mail.gmail.com
In Reply to: [gentoo-python] twisted-r1.eclass postrm failure for new twisted ebuilds by Brian Dolbec
1 On Thu, Sep 29, 2016 at 3:06 AM, Brian Dolbec <dolsen@g.o> wrote:
2 >
3 > OK, I've got the new twisted ebuild almost ready. I have the tests
4 > working, only diabling the network test group and one other that was
5 > disabled in the split pkg ebuild.
6 >
7 > But, the twisted-r1 postrm function is not working correctly. I have
8 > been overriding it in the ebuild so far. It seems that there is an
9 > EPYTHON issue...
10 >
11 > I'll let the traceback speak for itself.
12 >
13 > * python2_7: running distutils-r1_run_phase twisted-r1_update_plugin_cache
14 > * python3_4: running distutils-r1_run_phase twisted-r1_update_plugin_cache
15 > Traceback (most recent call last):
16 > File "<string>", line 1, in <module>
17 > File "/usr/lib64/python3.4/distutils/sysconfig.py", line 13, in <module>
18 > import re
19 > File "/usr/lib64/python3.4/re.py", line 336, in <module>
20 > import copyreg
21 > File "/usr/lib64/python2.7/site-packages/copyreg/__init__.py", line 7, in <module>
22 > raise ImportError('This package should not be accessible on Python 3. '
23 > ImportError: This package should not be accessible on Python 3.
24 > Either you are trying to run from the python-future src folder or your installation
25 > of python-future is corrupted.
26 >
27 >
28 >
29 > What I can't figure out is of it isn't EPYTHON that is screwed up, how the hell is
30 > this happening... a simple py3.4 import re causes the 3.4 re.py to try and import a
31 > py2.7 version of copyreq.
32 >
33 > I can't reproduce this in a terminal window with py3.4 session. "import re" is fine and
34 > works correctly. So, it can't be a bad python install.
35
36 See portage bug 595028.
37
38 https://bugs.gentoo.org/show_bug.cgi?id=595028
39
40 You can workaround the problem by adding something like this to any
41 pkg_* functions.
42
43 cd "${HOME}"