Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Pull in wheels for setuptools and wheel for testing extension builds
  • Loading branch information
pradyunsg committed Apr 7, 2023
commit dd1604170efbfcd7703ca66462a944da8e51efd1
Binary file added Lib/test/setuptools-67.6.1-py3-none-any.whl
Binary file not shown.
15 changes: 8 additions & 7 deletions Lib/test/test_cppext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# compatible with C++ and does not emit C++ compiler warnings.
import os.path
import shutil
try:
import ssl
except ImportError:
ssl = None
import sys
import unittest
import subprocess
Expand Down Expand Up @@ -36,8 +32,6 @@ def test_build_cpp03(self):
@unittest.skipIf(
'-fsanitize' in (sysconfig.get_config_var('PY_CFLAGS') or ''),
'test does not work with analyzing builds')
# the test uses pip which needs a TLS connection to PyPI
@unittest.skipIf(ssl is None, 'No ssl module')
# the test uses venv+pip: skip if it's not available
@support.requires_venv_with_pip()
def check_build(self, std_cpp03, extension_name):
Expand Down Expand Up @@ -87,9 +81,16 @@ def run_cmd(operation, cmd):
self.fail(
f"{operation} failed with exit code {proc.returncode}")

cmd = [python, '-X', 'dev',
'-m', 'pip', 'install',
support.findfile('setuptools-67.6.1-py3-none-any.whl'),
support.findfile('wheel-0.40.0-py3-none-any.whl')]
run_cmd('Install build dependencies', cmd)

# Build and install the C++ extension
cmd = [python, '-X', 'dev',
'-m', 'pip', 'install', os.path.abspath(pkg_dir)]
'-m', 'pip', 'install', '--no-build-isolation',
os.path.abspath(pkg_dir)]
run_cmd('Install', cmd)

# Do a reference run. Until we test that running python
Expand Down
Binary file added Lib/test/wheel-0.40.0-py3-none-any.whl
Binary file not shown.