8000 gh-100238: Use setuptools in peg-generator and reenable tests by lysnikolaou · Pull Request #104798 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-100238: Use setuptools in peg-generator and reenable tests #104798

New issue 8000

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 9 commits into from
May 26, 2023
Prev Previous commit
Next Next commit
Add another verbose print
  • Loading branch information
lysnikolaou committed May 25, 2023
commit 672e463f08c0d71631b9c74de4081b7638f9e4fe
11 changes: 8 additions & 3 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2286,22 +2286,27 @@ def setup_venv_with_pip_setuptools_wheel(venv_dir):
print('Run:', ' '.join(cmd))
subprocess.run(cmd, check=True)

venv = os.path.join(temp_dir, venv_dir)

# Get the Python executable of the venv
python_exe = 'python'
if sys.executable.endswith('.exe'):
python_exe += '.exe'
if sys.platform == 'win32':
python = os.path.join(temp_dir, venv_dir, 'Scripts', python_exe)
python = os.path.join(venv, 'Scripts', python_exe)
else:
python = os.path.join(temp_dir, venv_dir, 'bin', python_exe)
python = os.path.join(venv, 'bin', python_exe)

cmd = [python, '-X', 'dev',
'-m', 'pip', 'install',
findfile('setuptools-67.6.1-py3-none-any.whl'),
findfile('wheel-0.40.0-py3-none-any.whl')]
if verbose:
print()
print('Run:', ' '.join(cmd))
subprocess.run(cmd, check=True)

yield os.path.join(temp_dir, venv_dir), python
yield venv, python


# True if Python is built with the Py_DEBUG macro defined: if
Expand Down
0