----- Original Message -----
From: "Troy Curtis Jr" <troycurtisjr(a)gmail.com>
To: "Development discussions related to Fedora"
<devel(a)lists.fedoraproject.org>
Cc: "Fedora Python SIG" <python-devel(a)lists.fedoraproject.org>
Sent: Sunday, August 5, 2018 3:44:39 AM
Subject: Re: Why are we shipping debug builds of pythons?
On Sat, Aug 4, 2018 at 5:16 PM Miro Hrončok < mhroncok(a)redhat.com > wrote:
Hi,
an interesting discussion came up in the Python Maint team recently,
about not shipping python3-debug and python2-debug.
On the Chesterton's fence principle [0], I'd would like to know why are
we building and shipping them before we have a discussion about their
removal to save build time and remove packaging cruft.
Anyone has an idea? Those packages are meant to debug Python, yet all
people I know who do that, build they own Python for that purpose (often
from the master branch).
The other main use for the Python debug package is debugging Python C
extensions. I recently made very good use of it while using GDB to debug
some extensions I was working on. This is more than just having debug
symbols, which of course is essential, but the debug build means that when
you are stepping through the code, you can more easily follow what the
interpreter is doing. Also, I think that is the package that has some
niceties that extend GDB to work even better with Python code.
I tracked down the introduction of the python-debug package in this
commit [1] by David Malcolm (CCed) @ 8 years ago, added in Fedora 14
shortly before upgrade to 2.7. Yet the commit message lacks rationale.
[0]
https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence
[1]
https://src.fedoraproject.org/rpms/python/c/f020abd35954981b383884105dad4...
Thanks,
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
Troy
_______________________________________________
python-devel mailing list -- python-devel(a)lists.fedoraproject.org
To unsubscribe send an email to python-devel-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedorapr...
Hello. I would suppose you'd be referring to the debuginfo package, which is
automatically generated by rpm and holds (via some hacks)
the files required by gdb for properly debugging python apps.
Here we are referring to the python2-debug or python3-debug builds, which are just extra
python builds that are compiled with the --with-pydebug flag [0]
[0]
http://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug_p...
--
Regards,
Charalampos Stratakis
Software Engineer
Python Maintenance Team, Red Hat