GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-115119: Removed bundled copy of the libmpdec by skirpichev · Pull Request #133964 · python/cpython Conversation
|
| Previously, the :mod:`!_decimal` C extension underlying the :mod:`decimal` module | ||
| was built using an included copy of the libmpdec | ||
| library unless the build is configured ``--with-system-libmpdec``:: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't hurt to fix the libffi section as well. Suggested wording here, though:
| Previously, the :mod:`!_decimal` C extension underlying the :mod:`decimal` module | |
| was built using an included copy of the libmpdec | |
| library unless the build is configured ``--with-system-libmpdec``:: | |
| The :mod:`!_decimal` C extension underlying the :mod:`decimal` module | |
| is linked to the libmpdec C library:: |
On the other hand, we could just leave this file alone for now and get someone more knowledgeable about such things to tell us what we should do in a separate issue :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Then lets keep this intact.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| # Disable forced inlining in debug builds, see GH-94847 | ||
| AS_VAR_IF( | ||
| [with_pydebug], [yes], | ||
| [AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])]) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is only relevant for building libmpdec itself, isn't it?
There is a usage of TEST_COVERAGE in Modules/_decimal/_decimal.c, but I don't see anything ever defining it for that module.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There is a usage of TEST_COVERAGE in Modules/_decimal/_decimal.c, but I don't see anything ever defining it for that module.
It's defined there, no?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ok, sorry, my understanding of how LIBMPDEC_{CFLAGS,LDFLAGS} work was incorrect; this is fine.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Given that this define used only in one place, we could replace it with Py_DEBUG in the code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Zachary Ware <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.