我无法将python_targets_python3_7添加到我的点子中。
我已将其添加到/etc/portage/package.use/dev-python
cat /etc/portage/package.use/dev-python
dev-python/pip python_targets_python3_7 PYTHON_TARGETS: python3_7
根据此https://unix.stackexchange.com/questions/320313/python3-5-in-python-targets-not-working-in-gentoo,我还将以下内容添加到/etc/portage/profile/use.stable.mask
cat /etc/portage/use.stable.mask
-python_targets_pyton3_7
-python_single_target_python3_7
不幸的是,这不会导致在紧急情况下使用该标志
emerge -av dev-python/pip
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-python/pip-19.3.1-r1::gentoo USE="-test -vanilla" PYTHON_TARGETS="python2_7 python3_6 (-pypy3) (-python3_7)" 0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No] N
Quitting.
根据https://packages.gentoo.org/useflags/python_targets_python3_7 pip与python 3.7兼容。
非常感谢您的帮助。
答案是两个部分。
此问题在紧急手册页中被描述为从顶部开始的第四个符号:
Symbol Location Meaning
- prefix not enabled (either disabled or removed)
* suffix transition to or from the enabled state
% suffix newly added or removed
() circumfix forced, masked, or removed
{} circumfix state is bound to FEATURES settings
要消除此限制,您必须使用在https://forums.gentoo.org/viewtopic-t-1068102.html中找到的解决方案。我已经为python3_7更新了以下命令。
echo "dev-python/pip -python_targets_python3_7" >> /etc/portage/profile/package.use.mask
然后将python目标添加到构建中:
echo "dev-python/pip python_targets_python3_7" >> /etc/portage/package.use/dev-python