From cea7403b6713f020a888ffc44810864f1862f46a Mon Sep 17 00:00:00 2001 From: Stephen Hudson Date: Tue, 12 Nov 2019 11:46:12 -0600 Subject: Update nlopt package to add Python bindings to PYTHONPATH (#13688) * Update nlopt package to add Python bindings to PYTHONPATH * Use extends for nlopt/python fix * nlopt - change develop to master and add python dep qualifiers --- var/spack/repos/builtin/packages/nlopt/package.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/nlopt/package.py b/var/spack/repos/builtin/packages/nlopt/package.py index 417e7f5cd6..639e5d057d 100644 --- a/var/spack/repos/builtin/packages/nlopt/package.py +++ b/var/spack/repos/builtin/packages/nlopt/package.py @@ -16,7 +16,7 @@ class Nlopt(CMakePackage): url = "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz" git = "https://github.com/stevengj/nlopt.git" - version('develop', branch='master') + version('master', branch='master') version('2.5.0', sha256='c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae') variant('shared', default=True, description='Enables the build of shared libraries') @@ -28,13 +28,14 @@ class Nlopt(CMakePackage): # Note: matlab is licenced - spack does not download automatically variant("matlab", default=False, description="Build the Matlab bindings.") - depends_on('cmake@3.0:', type='build', when='@develop') - depends_on('python', when='+python') + depends_on('cmake@3.0:', type='build', when='@master') + depends_on('python', when='+python', type=('build', 'run')) depends_on('py-numpy', when='+python', type=('build', 'run')) depends_on('swig', when='+python') depends_on('guile', when='+guile') depends_on('octave', when='+octave') depends_on('matlab', when='+matlab') + extends('python', when='+python') def cmake_args(self): # Add arguments other than @@ -43,7 +44,7 @@ class Nlopt(CMakePackage): args = [] # Specify on command line to alter defaults: - # eg: spack install nlopt@develop +guile -octave +cxx + # eg: spack install nlopt@master +guile -octave +cxx # Spack should locate python by default - but to point to a build if '+python' in spec: -- cgit v1.2.3-70-g09d2