Description
Bug report
Python 3.10 had the ability to set PYTHON_DECIMAL_WITH_MACHINE
to override the choice of configuration for the _decimal
module:
Lines 2388 to 2397 in dcb342b
Since Python 3.11, this is no longer possible. This feature was necessary, on macOS particularly, with the --with-system-libmpdec
option if that system libmpdec is configured differently to the default Python config. On macOS, the default Python config forces universal, while setting PYTHON_DECIMAL_WITH_MACHINE
allowed it to be single-arch.
libmpdec
produces different headers depending on how it was built, which is why the setting is important to be able to override. Without it, the _decimal
module will fail to compile if the default does not match how system libmpdec
was built.
Homebrew's Python currently depends on this feature.
A test within CPython also seems to depend on this feature:
cpython/Modules/_decimal/tests/runall-memorydebugger.sh
Lines 63 to 79 in f4c0348
Your environment
- CPython versions tested on: 3.11.0rc2
- Operating system and architecture: macOS 12 (x86_64 and arm64)