[Python-Dev] Anyone building Python --without-doc-strings?

Stefan Krah stefan at bytereef.org
Sat Jan 26 16:47:39 CET 2013


Antoine Pitrou <solipsis at pitrou.net> wrote:
> Well... Speaking personally, I'd much rather stop shipping and
> "supporting" such obscure build options. I'd like to hear about people
> using production Pythons --without-doc-strings.

I'm not sure how accurate the output is for measuring these things, but
according to ``ls'' and ``du'' the option is indeed quite worthless:
./configure CFLAGS="-Os -s" LDFLAGS="-s" && make
$ du -h build/lib.linux-x86_64-3.4/
24K build/lib.linux-x86_64-3.4/__pycache__
3.9M build/lib.linux-x86_64-3.4/
$ ls -lh python
 1.8M Jan 26 16:36 python
$ ls -lh libpython3.4m.a
 9.6M Jan 26 16:36 libpython3.4m.a
===============================================================
./configure --without-doc-strings CFLAGS="-Os -s" LDFLAGS="-s" && make
$ du -h build/lib.linux-x86_64-3.4/
24K build/lib.linux-x86_64-3.4/__pycache__
3.8M build/lib.linux-x86_64-3.4/
$ ls -lh python
 1.6M Jan 26 16:33 python
$ ls -lh libpython3.4m.a
 9.4M Jan 26 16:33 libpython3.4m.a
Stefan Krah


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /