| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2261,7 +2261,7 @@ def _findwheel(pkgname): | |||
| 2261 | 2261 | filenames = os.listdir(wheel_dir) | |
| 2262 | 2262 | filenames = sorted(filenames, reverse=True) # approximate "newest" first | |
| 2263 | 2263 | for filename in filenames: | |
| 2264 | - # filename is like 'setuptools-67.6.1-py3-none-any.whl' | ||
| 2264 | + # filename is like 'setuptools-{version}-py3-none-any.whl' | ||
| 2265 | 2265 | if not filename.endswith(".whl"): | |
| 2266 | 2266 | continue | |
| 2267 | 2267 | prefix = pkgname + '-' | |
@@ -2270,8 +2270,8 @@ def _findwheel(pkgname): | |||
| 2270 | 2270 | raise FileNotFoundError(f"No wheel for {pkgname} found in {wheel_dir}") | |
| 2271 | 2271 | ||
| 2272 | 2272 | ||
| 2273 | - # Context manager that creates a virtual environment, install setuptools and wheel in it | ||
| 2274 | - # and returns the path to the venv directory and the path to the python executable | ||
| 2273 | + # Context manager that creates a virtual environment, install setuptools in it, | ||
| 2274 | + # and returns the paths to the venv directory and the python executable | ||
| 2275 | 2275 | @contextlib.contextmanager | |
| 2276 | 2276 | def setup_venv_with_pip_setuptools_wheel(venv_dir): | |
| 2277 | 2277 | import subprocess | |
@@ -2294,10 +2294,10 @@ def setup_venv_with_pip_setuptools_wheel(venv_dir): | |||
| 2294 | 2294 | else: | |
| 2295 | 2295 | python = os.path.join(venv, 'bin', python_exe) | |
| 2296 | 2296 | ||
| 2297 | - cmd = [python, '-X', 'dev', | ||
| 2297 | + cmd = (python, '-X', 'dev', | ||
| 2298 | 2298 | '-m', 'pip', 'install', | |
| 2299 | 2299 | _findwheel('setuptools'), | |
| 2300 | - _findwheel('wheel')] | ||
| 2300 | + _findwheel('wheel')) | ||
| 2301 | 2301 | if verbose: | |
| 2302 | 2302 | print() | |
| 2303 | 2303 | print('Run:', ' '.join(cmd)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments