Skip to content

Commit

Permalink
Make sure we use a canonical name for all packages and references to …
Browse files Browse the repository at this point in the history
…packages in requirements

Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Oct 14, 2023
1 parent 9c61a5d commit 3563fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rez_pip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def pythontDistributionNameToRez(name: str) -> str:
:param name: Distribution name to convert.
:returns: Rez-compatible package name.
"""
return name.replace("-", "_")
return name.replace("-", "_").replace(".", "_").lower()


def pythonDistributionVersionToRez(version: str) -> str:
Expand Down

0 comments on commit 3563fa7

Please sign in to comment.