PYTHON_TARGETSのpython3_5はGentooで動作しませんか?

PYTHON_TARGETSのpython3_5はGentooで動作しませんか?

PYTHON_TARGETS="python2_7 python3_5 python3_4"私に追加しました/etc/portage/make.conf

Pythonターゲットをサポートするプログラムをインストールしようとすると、次のことが起こります。

sudo emerge --ask dev-python/google-api-python-client

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-python/httplib2-0.9.1  PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3)" 
[ebuild  N     ] dev-python/pyasn1-modules-0.0.5-r1  PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3)" 
[ebuild  N     ] dev-python/linecache2-1.0.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)" 
[ebuild  N     ] dev-python/simplejson-3.8.1  PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)" 
[ebuild  N     ] dev-python/uritemplate-0.6  PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)" 
[ebuild  N     ] dev-python/traceback2-1.4.0  PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5)" 
[ebuild  N     ] dev-python/rsa-3.2.3-r1  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)" 
[ebuild  N     ] dev-python/oauth2client-2.0.1  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-python3_5)" 
[ebuild  N     ] dev-python/google-api-python-client-1.5.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy)" 

Would you like to merge these packages? [Yes/No] 

ご覧のとおり、python3_5は何らかの理由で無効になっており、これを解決する方法がわかりません。また、python_targets_python3_5結果なしでUSEフラグを追加してみました。

$ eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.4
  [3]   python3.5 *

python3.5フラグサポートを有効にするにはどうすればよいですか?

ベストアンサー1

ついにこの問題を解決する方法を見つけました。

/usr/portage/profiles/base/use.stable.mask次の行を編集してコメントする必要があります。

python_targets_python3_5
python_single_target_python3_5

それでは始めましょう。

sudo emerge --ask dev-python/google-api-python-client

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/six-1.10.0  PYTHON_TARGETS="python3_5*" 
[ebuild   R    ] dev-python/setuptools-20.6.7  PYTHON_TARGETS="python3_5*" 
[ebuild   R    ] dev-python/certifi-2015.11.20  PYTHON_TARGETS="python3_5*" 
[ebuild     U ~] dev-python/pyasn1-0.1.9 [0.1.8] PYTHON_TARGETS="python3_5%*" 
[ebuild  N    ~] dev-python/httplib2-0.9.2-r1  PYTHON_TARGETS="python2_7 python3_4 python3_5 -pypy -pypy3" 
[ebuild   R    ] dev-python/pbr-1.10.0  PYTHON_TARGETS="python3_5*" 
[ebuild  N     ] dev-python/simplejson-3.8.1  PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)" 
[ebuild  N     ] dev-python/uritemplate-0.6  PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)" 
[ebuild  N    ~] dev-python/pyasn1-modules-0.0.8  PYTHON_TARGETS="python2_7 python3_4 python3_5 -pypy -pypy3" 
[ebuild  N     ] dev-python/linecache2-1.0.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)" 
[ebuild  N     ] dev-python/traceback2-1.4.0  PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy) (-pypy3)" 
[ebuild  N     ] dev-python/rsa-3.2.3-r1  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy)" 
[ebuild  N     ] dev-python/oauth2client-2.0.1  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 python3_5 (-pypy)" 
[ebuild  N     ] dev-python/google-api-python-client-1.5.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy)" 

修正する:この変更はシステムアップデートで上書きされるため、/etc/portage/profile/use.stable.mask次の行にアップデートする必要があります。

-python_targets_python3_5
-python_single_target_python3_5

ありがとうヤンセグレレディットから。

おすすめ記事