FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 by felixonmars · Pull Request #21488 · python/cpython · GitHub

/ cpython Public

[3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 - #21488

Merged
skrah merged 2 commits into
python:3.8from
felixonmars:bpo-41302-3.8
Jul 15, 2020
Merged

[3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8#21488
skrah merged 2 commits into
python:3.8from
felixonmars:bpo-41302-3.8

Conversation

felixonmars commented Jul 15, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Define UNUSED only when mpdecimal.h doesn't define it. This would support
building with system libmpdec 2.5 while retaining compatibility with system
libmpdec 2.4 or the vendored copy.

Tested to build fine with either system libmpdec or the vendored one.

https://bugs.python.org/issue41302

Define UNUSED only when mpdecimal.h doesn't define it. This would support
building with system libmpdec 2.5 while retaining compatibility with system
libmpdec 2.4 or the vendored copy.

Tested to build fine with either system libmpdec or the vendored one.

skrah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you, this looks very safe given that neither _decimal.c nor libmpdec will change in 3.8.

Could you add a News entry to justify this? Something like:

"Enable building Python 3.8 with libmpdec-2.5.0 to ease maintenance for Linux distributions. Patch by Felix Yan."

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

felixonmars changed the title bpo-41302: Support system libmpdec 2.5 for Python 3.8 [3.8] bpo-41302: Support system libmpdec 2.5 for Python 3.8 Jul 15, 2020

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again. (Used blurb_t for the first time, hopefully I did it right)

Copy link
Copy Markdown

Thanks for making the requested changes!

@skrah: please review the changes made to this pull request.

bedevere-bot requested a review from skrah July 15, 2020 17:59

skrah commented Jul 15, 2020

Copy link
Copy Markdown
Contributor

Even though the patch is obviously correct, I've tested this with the included libmpdec, Ubuntu's libmpdec-dev-2.4.2 and libmpdec-2.5.0.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL