So I decided to rebuild Python 3 for my blfs system. It was compiled in during the LFS phase, but the blfs book says "Python 3 was installed in LFS. The only reason to rebuild it here is if optional modules are needed." so I thought i would rebuild it.
Naturally there were problems.
Problem one. The book says to, after install, do this:
Code:
ln -svfn python-3.7.0 /usr/share/doc/python-3
There is no such directory. I double checked a few things because I use a destdir install method and ... nope. Docs are not being built.
I don't care about docs not being there, but the apparent descrepency between what is in the book and what is in front of me is worriesome.
Problem two. The BLFS rebuild of python 3 is smaller than the LFS python 3. Specifcally, the package tarball of the newer one is smaller. If extra optional modules were being built, would not the newer one be larger?
I unzipped both packages (the LFS python 3 and the BLFS python 3) and ran diff. Ignoring differences and focusing only one files present one one and not the other reveals:
Code:
Only in old/usr/bin: easy_install-3.7
Only in old/usr/bin: pip3
Only in old/usr/bin: pip3.7
Only in new/usr/lib/python3.7/lib-dynload: _sqlite3.cpython-37m-x86_64-linux-gnu.so
Only in old/usr/lib/python3.7/site-packages: easy_install.py
Only in old/usr/lib/python3.7/site-packages: pip
Only in old/usr/lib/python3.7/site-packages: pip-10.0.1.dist-info
Only in old/usr/lib/python3.7/site-packages: pkg_resources
Only in old/usr/lib/python3.7/site-packages: __pycache__
Only in old/usr/lib/python3.7/site-packages: setuptools
Only in old/usr/lib/python3.7/site-packages: setuptools-39.0.1.dist-info
So why is pip3, easy_install and the others listed, only be compiled in LFS and not in BLFS?