Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616934 - app-portage/gentoolkit: Add support for python 3.6
Summary: app-portage/gentoolkit: Add support for python 3.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on: 617498
Blocks:
  Show dependency tree
 
Reported: 2017-04-29 06:30 UTC by fhede
Modified: 2018-06-28 15:34 UTC (History)
5 users (show)

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 fhede 2017-04-29 06:30:48 UTC
Just updated to python 3.6.


[ebuild   R    ] app-portage/gentoolkit-0.4.0  PYTHON_TARGETS="-python3_4*"
Comment 1 Paul Varner (RETIRED) gentoo-dev 2017-05-04 17:30:55 UTC
I've updated my local overlay to enable Python 3.6 for gentoolkit. I've already found an issue with revdep-rebuild.

I will keep testing, but if anyone else wants to test, copy either the gentoolkit-0.4.0 or gentoolkit-9999 ebuild to your local overlay and change PYTHON_COMPAT to be:

PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6} pypy)

If you find an issue, please file a bug and make it block this bug.
Comment 2 fhede 2017-10-21 05:31:48 UTC
I saw that bug https://bugs.gentoo.org/617498 is fixed.
Is this bug fixed to??
Comment 3 Guillaume Ayoub 2018-01-03 12:52:42 UTC
(In reply to fhede from comment #2)
> I saw that bug https://bugs.gentoo.org/617498 is fixed.
> Is this bug fixed to??

Python 3.6 has been added to PYTHON_COMPAT in 0.4.1 ebuild but not in 9999.
Comment 4 tt_1 2018-04-30 08:15:59 UTC
meanwhile python3_6 has been added to 0.4.0 ebuild, but could it be that this beauty here: 

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/revdep-rebuild", line 37, in <module>
    from gentoolkit.revdep_rebuild import rebuild
  File "/usr/lib/python3.6/site-packages/gentoolkit/revdep_rebuild/rebuild.py", line 29, in <module>
    from .analyse import analyse
  File "/usr/lib/python3.6/site-packages/gentoolkit/revdep_rebuild/analyse.py", line 18, in <module>
    from .collect import (prepare_search_dirs, parse_revdep_config,
  File "/usr/lib/python3.6/site-packages/gentoolkit/revdep_rebuild/collect.py", line 18, in <module>
    from .settings import parse_revdep_config
  File "/usr/lib/python3.6/site-packages/gentoolkit/revdep_rebuild/settings.py", line 19, in <module>
    'DEFAULT_LD_FILE': os.path.join(portage.root, 'etc/ld.so.conf'),
  File "/usr/lib/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not _LegacyGlobalProxy

comes from 0.4.0 not supporting python3_6 as python3 at all? 

I keyworded 0.4.2-r1, which works just fine. Also build 0.4.0 with python2_7 only, which works fine as well.
Comment 5 Zac Medico gentoo-dev 2018-04-30 20:20:24 UTC
(In reply to tt_1 from comment #4)
>     'DEFAULT_LD_FILE': os.path.join(portage.root, 'etc/ld.so.conf'),
>   File "/usr/lib/python3.6/posixpath.py", line 80, in join
>     a = os.fspath(a)
> TypeError: expected str, bytes or os.PathLike object, not _LegacyGlobalProxy
> 
> comes from 0.4.0 not supporting python3_6 as python3 at all? 

Since gentoolkit contains so many tools, it probably means that most of the tools work fine with python3.6, I see the PYTHON_COMPAT was adjusted by this commit:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9845156c143c6d1ece2ae3a21da8a41daa6c3649

> I keyworded 0.4.2-r1, which works just fine. Also build 0.4.0 with python2_7
> only, which works fine as well.

Great! Thanks for reporting.