summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2018-01-14 22:39:33 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-14 15:39:33 -0600
commita03674ebbd264570f11eaa2b411ec1002c7c039b (patch)
tree4af8765ffd84fd6f23acdc2d06d2269dd2b3b6d3 /var
parent0adcb610fecb1dc6b9371d71107bea4cb80c225f (diff)
downloadspack-a03674ebbd264570f11eaa2b411ec1002c7c039b.tar.gz
spack-a03674ebbd264570f11eaa2b411ec1002c7c039b.tar.bz2
spack-a03674ebbd264570f11eaa2b411ec1002c7c039b.tar.xz
spack-a03674ebbd264570f11eaa2b411ec1002c7c039b.zip
make vim python3 compatible (#6925)
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")