summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/python/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 83dbfb382f..8253ef0f9a 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -326,7 +326,7 @@ class Python(Package):
# An in-source build with --enable-optimizations fails for python@3.X
build_directory = "spack-build"
- executables = [r"^python[\d.]*[mw]?$"]
+ executables = [r"^python\d?$"]
@classmethod
def determine_version(cls, exe):