|
2 | 2 | # compatible with C++ and does not emit C++ compiler warnings.
|
3 | 3 | import os.path
|
4 | 4 | import shutil
|
5 |
| -try: |
6 |
| - import ssl |
7 |
| -except ImportError: |
8 |
| - ssl = None |
9 | 5 | import sys
|
10 | 6 | import unittest
|
11 | 7 | import subprocess
|
@@ -36,8 +32,6 @@ def test_build_cpp03(self):
|
36 | 32 | @unittest.skipIf(
|
37 | 33 | '-fsanitize' in (sysconfig.get_config_var('PY_CFLAGS') or ''),
|
38 | 34 | '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') |
41 | 35 | # the test uses venv+pip: skip if it's not available
|
42 | 36 | @support.requires_venv_with_pip()
|
43 | 37 | def check_build(self, std_cpp03, extension_name):
|
@@ -87,9 +81,16 @@ def run_cmd(operation, cmd):
|
87 | 81 | self.fail(
|
88 | 82 | f"{operation} failed with exit code {proc.returncode}")
|
89 | 83 |
|
| 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 | + |
90 | 90 | # Build and install the C++ extension
|
91 | 91 | 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)] |
93 | 94 | run_cmd('Install', cmd)
|
94 | 95 |
|
95 | 96 | # Do a reference run. Until we test that running python
|
|
0 commit comments