Skip to content

Commit 8c0ffc3

Browse files
committed
Fix --py / --python venv creation on Windows.
1 parent 17814fd commit 8c0ffc3

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 0.30.3
4+
5+
Fix `--py` / `--python` venv creation on Windows.
6+
37
## 0.30.2
48

59
Fix command `accepts-extra-args` handling. If multiple different commands that accept extra args are

dev_cmd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright 2024 John Sirois.
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

4-
__version__ = "0.30.2"
4+
__version__ = "0.30.3"

dev_cmd/venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def _extra_requirements_args() -> Iterator[list[str]]:
373373
shebang.replace(work_dir_path_bytes, venv_dir_path_bytes)
374374
)
375375
shutil.copyfileobj(candidate_fp, rewrite_fp)
376-
rewrite_target.rename(candidate_console_script)
376+
rewrite_target.replace(candidate_console_script)
377377
_chmod_plus_x(candidate_console_script)
378378

379379
with (work_dir / layout_file.name).open("w") as out_fp:

0 commit comments

Comments
 (0)