On 23/12/2018 15:53, spiky0011 via blfs-dev wrote: > > On 23/12/2018 13:08, spiky0011 wrote: >> Building libpwquality-1.4.0, it fails >> >> "checking python version... ./configure: line 15249: python: command not >> found" >> >> Python3 was rebuilt in blfs. Python2 not installed. >> >> > With regards to this, I have had to install Python2 then retried libpwquality > it built fine. > > So I dont know if a config can be added or a dep of Python2 >
3 solutions, AFAICS: - add '--disable-python-bindings' to configure: then Python is not used - add '--with-python-binary=python3' to configure (my choice). Actually, configure --help outputs: ---- [...] --with-python-binary=python3 python binary name with which modules should be built --with-python-rev=2.7 version of python for which modules should be built --with-pythonsitedir=DIR directory of the python site packages [default=$libdir/python$PYTHONREV/site-packages] [...] ---- so I would understand that python3 is the default. But if the switch is not set, python-binary defaults to python. Note that python-rev is obtained by calling python-binary - make Python2 a recommended dep (I don't recommend that) I can add the --with-python-binary=python3 switch to the book, if agreed. Also add Python2 as optional dep... Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
