Ken Moffat wrote:
On Thu, Mar 08, 2018 at 11:41:39AM +0000, Hazel Russman wrote:
On Thu, 8 Mar 2018 11:14:58 +0100
Pierre Labastie <pierre.labas...@neuf.fr> wrote:


I couldn't find an instruction in LFS to create this link. I suggest adding:
Some programs expect to find /usr/bin/python. To satisfy them, create a 
symbolic link:
ln -svf python3 /usr/bin/python

I wouldn't recommend doing that: it could lead to execute python2 code with
python3, but many python2 scripts cannot be run with python3. I'm not sure
what to do with harfbuzz, but I guess Python2 should be in optional deps (to
run tests). In any case, the link above should be only temporary for running
harfbuz tests. Another possibility is to issue:
---
find . -name \*.py | xargs sed -i 's/env python/&3/'
---

Pierre
--
Oops! I forgot that /usr/bin/python is often a link to python2. Your 
find-and-edit is a neater solution than making a temporary symlink and then 
deleting it. Maybe it could be added to harfbuzz and to any other packages that 
turn out to throw this problem. I suspect that with python3 now compulsory, 
most people will not want to install python2 just for a few checks.

I admire your optimism that you will be able to build (what I assume
is) a desktop system without python2.

Hazel,

python is mentioned in 176 files in BLFS, but only 42 of those are python3. In any reasonable workstation system, both versions will be needed. If you are creating a server of some type (file, web, database, mail, etc) you might be able to avoid python2.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to