Skip to content

Merge with distutils@34f9518ef#4463

Merged
jaraco merged 5 commits intomainfrom
bugfix/distutils-34f9518ef
Jul 9, 2024
Merged

Merge with distutils@34f9518ef#4463
jaraco merged 5 commits intomainfrom
bugfix/distutils-34f9518ef

Conversation

@jaraco
Copy link
Member

@jaraco jaraco commented Jul 9, 2024

Summary of changes

Closes pypa/distutils#268

Pull Request Checklist

lazka and others added 5 commits July 4, 2024 23:12
Now that setuptools with mingw support is on pypi, this uncovered
the same issue as fixed in 2317473 when pip installing
MarkupSafe.

Apply the same work around here too.
By enabling customize_compiler() when using the mingw compiler class
in 2ad8784 this also enabled it for when the mingw compiler
class was used with a MSVC built CPython.

MSVC CPython doesn't have any of the config vars that are required in
customize_compiler() though. And while it would be nice if all the env
vars would be considered in that scenario too, it's not clear how this
should be implemented without any sysconfig provided fallbacks
(if CC isn't set but CFLAGS is, there is no way to pass things to
set_executables() etc.)

Given that, just restore the previous behaviour, skip customize_compiler()
with MSVC Python in all cases, and add a test.

Fixes https://github.com/pypa/setuptools/issues/4456
…mpiler_msvc_python

sysconfig: skip customize_compiler() with MSVC Python again
@jaraco jaraco merged commit 822280b into main Jul 9, 2024
@jaraco jaraco deleted the bugfix/distutils-34f9518ef branch July 9, 2024 15:49
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.

[BUG] Building Cython extension on Windows triggers TypeError

2 participants