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 57cfa05
Showing 1 changed file with 1 addition and 1 deletion.
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 57cfa05

Please sign in to comment.