| 1 |
"""PEP 517 build backend for optionally pre-building Cython.""" |
| 2 |
|
| 3 |
from contextlib import suppress as _suppress |
| 4 |
|
| 5 |
from setuptools.build_meta import * # Re-exporting PEP 517 hooks # pylint: disable=unused-wildcard-import,wildcard-import # noqa: F401, F403 |
| 6 |
|
| 7 |
# Re-exporting PEP 517 hooks |
| 8 |
from ._backend import ( # type: ignore[assignment] |
| 9 |
build_sdist, |
| 10 |
build_wheel, |
| 11 |
get_requires_for_build_wheel, |
| 12 |
prepare_metadata_for_build_wheel, |
| 13 |
) |
| 14 |
|
| 15 |
with _suppress(ImportError): # Only succeeds w/ setuptools implementing PEP 660 |
| 16 |
# Re-exporting PEP 660 hooks |
| 17 |
from ._backend import ( # type: ignore[assignment] |
| 18 |
build_editable, |
| 19 |
get_requires_for_build_editable, |
| 20 |
prepare_metadata_for_build_editable, |
| 21 |
) |