PYTHON-3760 Add C extension building as part of tox test environment (#1255)

This commit is contained in:
Steven Silvester 2023-06-22 16:18:55 -05:00 committed by GitHub
parent 424e6c46fa
commit 2a4dc9cb0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,8 @@ https://pymongo.readthedocs.io/en/stable/installation.html#osx
try:
build_ext.run(self)
except Exception:
if "TOX_ENV_NAME" in os.environ:
raise
e = sys.exc_info()[1]
sys.stdout.write("%s\n" % str(e))
warnings.warn(
@ -141,6 +143,8 @@ https://pymongo.readthedocs.io/en/stable/installation.html#osx
try:
build_ext.build_extension(self, ext)
except Exception:
if "TOX_ENV_NAME" in os.environ:
raise
e = sys.exc_info()[1]
sys.stdout.write("%s\n" % str(e))
warnings.warn(