Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Jun 20, 2023
1 parent b28ff7e commit 3e39151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tox/tox_env/python/virtual_env/package/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def perform_packaging(self, for_env: EnvConfigSet) -> list[Package]:
for env in targets:
env._defined["package"].value = "editable-legacy" # type: ignore[attr-defined] # noqa: SLF001
self.builds["editable-legacy"].append(env)
self._run_state["setup"] = False # force setup again as we need to provision wheel to get dependencies
deps = self._load_deps(for_env)
of_type: str = for_env["package"]
if of_type == "editable-legacy":
Expand Down Expand Up @@ -338,7 +339,7 @@ def __init__(self, root: Path, env: Pep517VirtualEnvPackager) -> None:
into: dict[str, Any] = {}

for hook in chain(
(f"get_requires_for_build_{build_type}" for build_type in ["editable", "wheel"]),
(f"get_requires_for_build_{build_type}" for build_type in ["editable", "wheel", "sdist"]),
(f"prepare_metadata_for_build_{build_type}" for build_type in ["editable", "wheel"]),
(f"build_{build_type}" for build_type in ["editable", "sdist", "wheel"]),
): # wrap build methods in a cache wrapper
Expand Down

0 comments on commit 3e39151

Please sign in to comment.