# vim: ft=zsh noet if [[ $1 == info ]]; then FSB_INFO_BASE=%s FSB_INFO_DIR=%s FSB_INFO_DEPEND=gentoo_mixins if (($+STAGE_GENTOO_NOPY3K)); then FSB_INFO_BASE+=-py2 else FSB_INFO_SKIP=1 fi return elif [[ $1 != build ]]; then die "unimplemented action: $*" fi fsb_emerge -1uN portage sandbox fsb_gentoo_profile_add -o ccx-bootstrap mix-ins/nopy3k fsb_chroot_bash eselect python set python2.7 fsb_emerge_hackfix --backtrack=35 -uvDN @world ## Mike Gilbert (13 Nov 2017) ## python-updater is obsolete. Utilize PYTHON_TARGETS... #fsb_emerge -n python-updater #grep -q python-updater $build_dir/var/lib/portage/world \ # || die "failed to add python-updater to world" fsb_emerge -1u '=python-2.7*' portage # fsb_emerge --depclean #fsb_chroot_bash python-updater # emerge -1uN portage # fsb_emerge --unmerge '>=dev-lang/python-3' # fsb_chroot_bash python-updater # fsb_chroot_bash eselect python set python2.7 # fsb_emerge --unmerge '>=dev-lang/python-3' # fsb_emerge -1u portage