We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199824c commit 4224f9bCopy full SHA for 4224f9b
src/pyproject_hooks/_in_process/_in_process.py
@@ -57,12 +57,12 @@ def __init__(self, hook_name=None):
57
58
def _build_backend():
59
"""Find and load the build backend"""
60
- # Add in-tree backend directories to the front of sys.path.
61
backend_path = os.environ.get("PEP517_BACKEND_PATH")
62
ep = os.environ["PEP517_BUILD_BACKEND"]
63
mod_path, _, obj_path = ep.partition(":")
64
65
if backend_path:
+ # Ensure in-tree backend directories have the highest priority when importing.
66
extra_pathitems = backend_path.split(os.pathsep)
67
sys.meta_path.insert(0, _BackendPathFinder(extra_pathitems, mod_path))
68
0 commit comments