﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
5729	Python: add --without-static-libpython	thomas	lfs-book	"**--without-static-libpython**

User dantob brought this up in #lfs-support:

<dantob> Basically, python as built in lfs ships a large static lib libpython-$version.a (50mb unstripped, about 6mb stripped, its probably the largest lib on thesystem), afaik it's not required for anything in lfs. Python can be built without the static lib with `--without-static-libpython` since python version 3.10. there may be something in blfs that requires it, it might require some more investigation. The upstream bug about it is here https://github.com/python/cpython/issues/87269, and the commit https://github.com/python/cpython/pull/24418/commits/e1268bd493ac4e44e0b29fac326287c8d098db07

Indeed, there is a big static lib:

{{{
$ ls -la /usr/lib/python3.13/config-3.13-x86_64-linux-gnu/*.a
-rw-r--r-- 1 root root 9080942 17. Apr 22:39 /usr/lib/python3.13/config-3.13-x86_64-linux-gnu/libpython3.13.a
}}}

Adding the mentioned switch (`--without-static-libpython`) prevents it from being built - at least from being installed.

Do you know what the .a is good for? Shouldn't we add that switch?

**Test files**

The directory /usr/lib/python3.13/test contains 139M of test files.

Are they really needed?
"	enhancement	closed	normal	12.4	Book	git	normal	fixed		
