-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure setup.py editable builds do not use pep517
Prior to this change when Poetry builds a project with a setup.py file, as in the case when `generate-setup-file` was set to true, `pip` fallback was invoked with a PEP 517 isolated build causing it to fail. This was a regression in functionality from Poetry 1.1 build script usage. However, note that build script usage is an experimental feature.
- Loading branch information
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
from typing import Any | ||
|
||
|
||
def build(setup_kwargs: dict[str, Any]): | ||
assert setup_kwargs["name"] == "extended-project" | ||
assert setup_kwargs["version"] == "1.2.3" | ||
|
||
dynamic_module = Path(__file__).parent / "extended_project" / "built.py" | ||
dynamic_module.write_text("# Generated by build.py") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters