Skip to content

Commit

Permalink
Set project name to UNKNOWN when empty
Browse files Browse the repository at this point in the history
For compatibility with distutils
  • Loading branch information
uranusjr committed Apr 24, 2021
1 parent 75ba96c commit c157449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/9838.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix compatibility between distutils and sysconfig when the project name is unknown.
2 changes: 1 addition & 1 deletion src/pip/_internal/locations/_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_scheme(
scheme = Scheme(
platlib=paths["platlib"],
purelib=paths["purelib"],
headers=os.path.join(paths["include"], dist_name),
headers=os.path.join(paths["include"], dist_name or "UNKNOWN"),
scripts=paths["scripts"],
data=paths["data"],
)
Expand Down

0 comments on commit c157449

Please sign in to comment.