Skip to content

Commit dd16041

Browse files
committed
Pull in wheels for setuptools and wheel for testing extension builds
1 parent f6c4024 commit dd16041

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
1.04 MB
Binary file not shown.

Lib/test/test_cppext.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# compatible with C++ and does not emit C++ compiler warnings.
33
import os.path
44
import shutil
5-
try:
6-
import ssl
7-
except ImportError:
8-
ssl = None
95
import sys
106
import unittest
117
import subprocess
@@ -36,8 +32,6 @@ def test_build_cpp03(self):
3632
@unittest.skipIf(
3733
'-fsanitize' in (sysconfig.get_config_var('PY_CFLAGS') or ''),
3834
'test does not work with analyzing builds')
39-
# the test uses pip which needs a TLS connection to PyPI
40-
@unittest.skipIf(ssl is None, 'No ssl module')
4135
# the test uses venv+pip: skip if it's not available
4236
@support.requires_venv_with_pip()
4337
def check_build(self, std_cpp03, extension_name):
@@ -87,9 +81,16 @@ def run_cmd(operation, cmd):
8781
self.fail(
8882
f"{operation} failed with exit code {proc.returncode}")
8983

84+
cmd = [python, '-X', 'dev',
85+
'-m', 'pip', 'install',
86+
support.findfile('setuptools-67.6.1-py3-none-any.whl'),
87+
support.findfile('wheel-0.40.0-py3-none-any.whl')]
88+
run_cmd('Install build dependencies', cmd)
89+
9090
# Build and install the C++ extension
9191
cmd = [python, '-X', 'dev',
92-
'-m', 'pip', 'install', os.path.abspath(pkg_dir)]
92+
'-m', 'pip', 'install', '--no-build-isolation',
93+
os.path.abspath(pkg_dir)]
9394
run_cmd('Install', cmd)
9495

9596
# Do a reference run. Until we test that running python
63 KB
Binary file not shown.

0 commit comments

Comments
 (0)