Skip to content

Attempt to fix Python setup.py build for clang / MacOS #1211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

johnbartholomew
Copy link
Collaborator

@johnbartholomew johnbartholomew commented Feb 23, 2025

Clang is apparently more strict about using -std=c++17 only for C++ compilation, rejecting it with an error for C compilation (GCC gives a warning but proceeds).

This is an attempt to fix #1202.

@johnbartholomew
Copy link
Collaborator Author

@mauvilsa if you have time, could you try this on mac?

@mauvilsa
Copy link

@johnbartholomew it works, see https://github.com/omni-us/jsonargparse/pull/682/checks. Thanks for the fix!

setup.py test is deprecated, just run the tests directly.

Require setuptools 72.2 - this incorporates upstream distutils changes
which make it easier to adjust C++ compile flags independently of C
compile flags.
@johnbartholomew johnbartholomew merged commit dabbcc8 into google:master Feb 24, 2025
6 checks passed
@johnbartholomew
Copy link
Collaborator Author

Merged, but slightly accidentally (I mixed up two branches I was working on - oops!). Although I had to remove it from this PR the actual relevant commit is in master as commit a679ce4.

@johnbartholomew johnbartholomew deleted the macos-python branch February 24, 2025 22:46
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.

macOS install/build fails when using Python 3.13
2 participants