From af536abf965193a91fadaed8a26936a122467e94 Mon Sep 17 00:00:00 2001 From: PrajwalM2212 Date: Fri, 14 Feb 2020 21:31:50 +0530 Subject: [PATCH] py_info.py: Discover python interpreter in a case insensitive manner Closes https://github.com/pypa/virtualenv/issues/1624 --- docs/changelog/1624.bugfix.rst | 1 + src/virtualenv/discovery/py_info.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/changelog/1624.bugfix.rst diff --git a/docs/changelog/1624.bugfix.rst b/docs/changelog/1624.bugfix.rst new file mode 100644 index 000000000..538ff192f --- /dev/null +++ b/docs/changelog/1624.bugfix.rst @@ -0,0 +1 @@ +Discover python interpreter in a case insensitive manner diff --git a/src/virtualenv/discovery/py_info.py b/src/virtualenv/discovery/py_info.py index 8e520ba0d..c897cf178 100644 --- a/src/virtualenv/discovery/py_info.py +++ b/src/virtualenv/discovery/py_info.py @@ -237,7 +237,7 @@ def satisfies(self, spec, impl_must_match): return False if impl_must_match: - if spec.implementation is not None and spec.implementation != self.implementation: + if spec.implementation is not None and spec.implementation.lower() != self.implementation.lower(): return False if spec.architecture is not None and spec.architecture != self.architecture: