Skip to content

PYTHON-2965 Migrate to a PEP517 compliant build system #1252

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 8 commits into from
Jun 22, 2023

Conversation

blink1073
Copy link
Member

No description provided.

@@ -4,10 +4,6 @@
import sys
import warnings

if sys.version_info[:3] < (3, 7):
raise RuntimeError("Python version >= 3.7 required.")
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need this as long as setup.py exists?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, setuptools will use the python_requires config from pyproject.toml.

setup.py Outdated
readme_content = ""
finally:
f.close()

# PYTHON-654 - Clang doesn't support -mno-fused-madd but the pythons Apple
Copy link
Member

Choose a reason for hiding this comment

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

How does the new build process handle this "-mno-fused-madd" issue? Or is it no longer a concern.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, we don't need to use the stdlib distutils at all, and the distutils that ships with setuptools does not add this flag. I cleaned up this block.

@blink1073 blink1073 requested a review from ShaneHarvey June 22, 2023 12:35
@blink1073 blink1073 merged commit e78a91e into mongodb:master Jun 22, 2023
@blink1073 blink1073 deleted the PYTHON-2965 branch June 22, 2023 18:00
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.

2 participants