summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vim/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/vim/package.py b/var/spack/repos/builtin/packages/vim/package.py
index ae99824e30..fb2ba5d437 100644
--- a/var/spack/repos/builtin/packages/vim/package.py
+++ b/var/spack/repos/builtin/packages/vim/package.py
@@ -96,9 +96,14 @@ class Vim(AutotoolsPackage):
configure_args.append("--with-features=" + feature_set)
if '+python' in spec:
- configure_args.append("--enable-pythoninterp=yes")
+ if 'python@3:' in self.spec:
+ configure_args.append("--enable-python3interp=yes")
+ configure_args.append("--enable-pythoninterp=no")
+ else:
+ configure_args.append("--enable-python3interp=no")
+ configure_args.append("--enable-pythoninterp=yes")
else:
- configure_args.append("--enable-pythoninterp=no")
+ configure_args.append("--enable-python3interp=no")
if '+ruby' in spec:
configure_args.append("--enable-rubyinterp=yes")