Skip to content

Commit

Permalink
Fix install console script with extras (#8900)
Browse files Browse the repository at this point in the history
  • Loading branch information
couling authored Jan 27, 2024
1 parent 90581f5 commit 312bb7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/poetry/masonry/builders/editable.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ def _add_scripts(self) -> list[Path]:

scripts = entry_points.get("console_scripts", [])
for script in scripts:
name, script = script.split(" = ")
module, callable_ = script.split(":")
name, script_with_extras = script.split(" = ")
script_without_extras = script_with_extras.split("[")[0]
module, callable_ = script_without_extras.split(":")
callable_holder = callable_.split(".", 1)[0]

script_file = scripts_path.joinpath(name)
Expand Down

0 comments on commit 312bb7a

Please sign in to comment.