component/python-2.7, component/python3: fix readline termcap library detection.
Showing
-
Owner
Eek a new core dependency. And I also discover that
sed -i
is not posix, so if you don't want to use system sed this way, whereas even busybox sed supports -i:- Do you have in mind to use
${sed:location}/bin/sed
everywhere else ? - I'd prefer something else like patch, or since we already depend on perl for openssl:
${perl:location}/bin/perl -pi -e "s/(if 'curses' in ln):/\$1.split(os.sep)[-1]:/" setup.py
Apart from that, I'd simplify a little:
${perl:location}/bin/perl -pi -e "s/(if 'curses' in ln):/\$1.split()[0]:/" setup.py
And is there also a plan to detect illegal use of system binaries ? What's the point imposing ourselves such constraints ?
/cc @jerome
- Do you have in mind to use
-
Owner
I didn't use patch because python3/buildout.cfg contains several python versions and we may not be able to use the same patch in some versions. But I'm OK to rewrite using perl instead.
And I used slapos sed only because we already have it in slapos.
Anyway your proposal of using
.split()[0]
is simpler.
Please register or sign in to comment