-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Move packaging to PEP 517 in-tree backend
This essentially allows the cythonization opt-out be controlled by the `pure-python` PEP 517 config setting that can be passed to the corresponding build frontends via their respective CLIs.
- Loading branch information
Showing
13 changed files
with
787 additions
and
46 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,11 @@ | ||
# `pep517_backend` in-tree build backend | ||
|
||
The `pep517_backend.hooks` importable exposes callables declared by PEP 517 | ||
and PEP 660 and is integrated into `pyproject.toml`'s | ||
`[build-system].build-backend` through `[build-system].backend-path`. | ||
|
||
# Design considerations | ||
|
||
`__init__.py` is to remain empty, leaving `hooks.py` the only entrypoint | ||
exposing the callables. The logic is contained in private modules. This is | ||
to prevent import-time side effects. |
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 @@ | ||
"""PEP 517 build backend for optionally pre-building Cython.""" |
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,6 @@ | ||
import sys | ||
|
||
from . import cli | ||
|
||
if __name__ == "__main__": | ||
sys.exit(cli.run_main_program(argv=sys.argv)) |
Oops, something went wrong.