Re: Why are we shipping debug builds of pythons?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Troy Curtis Jr" <troycurtisjr@xxxxxxxxx>
> To: "Development discussions related to Fedora" <devel@xxxxxxxxxxxxxxxxxxxxxxx>
> Cc: "Fedora Python SIG" <python-devel@xxxxxxxxxxxxxxxxxxxxxxx>
> 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@xxxxxxxxxx > 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/f020abd35954981b383884105dad425ba9c6637a
> 
> Thanks,
> --
> Miro Hrončok
> --
> Phone: +420777974800
> IRC: mhroncok
> 
> Troy
> 
> 
> _______________________________________________
> python-devel mailing list -- python-devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to python-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx/message/AHOMI7GX6IBXSINVDDTBX6GYZF2Y5QLY/
> 

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_python.html

-- 
Regards,

Charalampos Stratakis
Software Engineer
Python Maintenance Team, Red Hat
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/J4KJV5NSD6D6EARF22WD76ZTAYD3CCOX/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux