-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make __file__ an absolute path in setuptools.build_meta (#3795)
PR MESSAGE: This is a difference between pip's legacy wheel build (or direct invocations of setup.py) and the PEP 517 build. While setup.py scripts that rely on this are fragile, it was quite painful to debug! Since Python 3.4, __file__ is usually an absolute path, so this change might result in fewer surprises.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Ensured that ``__file__`` is an absolute path when executing ``setup.py`` as | ||
part of ``setuptools.build_meta``. |
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