Skip to content

Commit 4fd09eb

Browse files
committed
Fix minor bug in dev.py --wheel flag
1 parent 333f3bb commit 4fd09eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
from pathlib import Path
1616
from typing import Any, Union
1717

18+
from buildconfig.get_version import version
19+
1820
MOD_NAME = "pygame-ce"
1921
DIST_DIR = "dist"
2022

@@ -259,8 +261,9 @@ def cmd_build(self):
259261
[self.py, "-m", "pip", "wheel", "-v", "-w", wheel_dir, *install_args]
260262
)
261263
pprint("Installing wheel")
264+
mod_name = f"{MOD_NAME}=={version}"
262265
pip_install(
263-
self.py, ["--no-index", "--force", "--find-links", wheel_dir, MOD_NAME]
266+
self.py, ["--no-index", "--force", "--find-links", wheel_dir, mod_name]
264267
)
265268
else:
266269
pprint(f"Installing in editable mode ({info_str})")

0 commit comments

Comments
 (0)