/usr/share/eselect/modules/python.eselect doesn't work because the shell expressions don't match the .exe suffix of the python binary. example: ls "python2.?" doesn't match "python2.6.exe" There is more of this. Reproducible: Always Steps to Reproduce: Bootstrapping Prefix Python on Cygwin. Actual Results: Error messages. The python sysmlink and python-wrapper are not created. Possible Solutions: 1.) python2.* doesn't work. Would match python2.6-config, what isn't wanted. 2.) ls python2.?{,.exe} 2>/dev/null (not tested) 3.) ls python2.?${EXE_SUFFIX} (not tested) Which way to go? In case of 3.) where to set $EXE_SUFFIX, in /usr/share/eselect/libs/eselect or in python.eselect?
chosen way depends actually on what the python team thinks is the best approach
Are sed expressions equivalent to a patch? Then here we go. This works on Cygwin. file=/usr/share/eselect/modules/python.eselect sed -i '14 a[[ ${CHOST} == *-cygwin* ]] && EXE_SUFFIX=".exe"' $file sed -i 's/"\(python[23?][.][?]\)"/"\1${EXE_SUFFIX}"/' $file
(In reply to comment #2) no. python.eselect should be renamed to python.eselect.in and use @EXEEXT@ and have config.status output it.
Created attachment 347304 [details, diff] Patch file generate from git
(In reply to comment #4) > Created attachment 347304 [details, diff] [details, diff] > Patch file generate from git Sorry for missing the comment. This patch follows the guide in comment #3 by SpanKY.
Please use '-M' to get clean patch for file moves.
Created attachment 347314 [details, diff] eselect-python.patch Sorry for the wrong format.
up to python maintainers to decide if they want to do this or not.
's okay with me, but I'll defer to people who've actually touched eselect-python.
Looks ok to me. I will push it and cut a new release once g.o.g.o is back up.
+*eselect-python-20140115 (19 Jan 2014) + + 19 Jan 2014; Mike Gilbert <floppym@gentoo.org> + +eselect-python-20140115.ebuild: + Version bump, fixes bug 337601. +