Skip to content

Commit e59c75a

Browse files
committed
Make sure we install recommended version of wheel in graalpy-virtualenv
1 parent 52b59de commit e59c75a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

graalpy_virtualenv/graalpy_virtualenv/graalpy.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,15 @@ def run(self, creator):
180180
@contextmanager
181181
def get_pip_install_cmd(self, exe, for_py_version):
182182
cmd = [str(exe), "-m", "pip", "-q", "install", "--only-binary", ":all:", "--disable-pip-version-check"]
183-
if not self.download:
184-
cmd.append("--no-index")
185183
ensurepip_path = get_ensurepip_path(exe)
186184
for dist, version in self.distribution_to_versions().items():
187-
if ensurepip_path and version == 'bundle' and dist in ('pip', 'setuptools'):
188-
wheel = from_dir(dist, None, for_py_version, [ensurepip_path])
185+
if ensurepip_path and version == 'bundle':
186+
if dist in ('pip', 'setuptools'):
187+
wheel = from_dir(dist, None, for_py_version, [ensurepip_path])
188+
else:
189+
# For wheel, install just `wheel` our patching logic should pick the right version
190+
cmd.append(dist)
191+
continue
189192
else:
190193
wheel = get_wheel(
191194
distribution=dist,

0 commit comments

Comments
 (0)