Skip to content

Commit 583d63e

Browse files
committed
Experiemental build env backend by pypa/build
The current build backend is moved to a subpackage, and the new one can be enabled with --use-feature=build.
1 parent 9aa422d commit 583d63e

File tree

15 files changed

+565
-339
lines changed

15 files changed

+565
-339
lines changed

src/pip/_internal/build_env.py

Lines changed: 0 additions & 310 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""Build Environment used for isolation during sdist building.
2+
3+
Three implementations are available:
4+
5+
* NoOpBuildEnvironment: Does not actually do anything, used by legacy code.
6+
* CustomBuildEnvironment: Old build environment implemented by pip developers.
7+
* PyPABuildEnvironment: New build environment that uses pypa/build.
8+
"""
9+
10+
from .base import NoOpBuildEnvironment, get_runnable_pip
11+
from .custom import BuildEnvironment as CustomBuildEnvironment
12+
from .pypa import BuildEnvironment as PyPABuildEnvironment
13+
14+
BuildEnvironment = NoOpBuildEnvironment
15+
16+
__all__ = [
17+
"BuildEnvironment",
18+
"CustomBuildEnvironment",
19+
"NoOpBuildEnvironment",
20+
"PyPABuildEnvironment",
21+
"get_runnable_pip",
22+
]

0 commit comments

Comments
 (0)