From 3563fa7e02890add1d3181012029cc7d20811409 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Morin Date: Fri, 13 Oct 2023 20:18:47 -0400 Subject: [PATCH] Make sure we use a canonical name for all packages and references to packages in requirements Signed-off-by: Jean-Christophe Morin --- src/rez_pip/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rez_pip/utils.py b/src/rez_pip/utils.py index e6db6d5..b91c5cb 100644 --- a/src/rez_pip/utils.py +++ b/src/rez_pip/utils.py @@ -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: