Fix professor recipe (#30002)
* [WIP] Cleanup professor dependencies * Add dependency on ROOT * Remove direct dependency on wxwidgets * `prof-I` tool requires matplotlib with wxwidgets backend, made that optional * Update package.py * Update package.py (#38) * Update package.py * Update package.py
This commit is contained in:
parent
b6f2a70f7b
commit
0be5dea13f
@ -2,6 +2,7 @@
|
|||||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
import os
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
@ -16,13 +17,24 @@ class Professor(Package):
|
|||||||
|
|
||||||
version('2.3.3', sha256='60c5ba00894c809e2c31018bccf22935a9e1f51c0184468efbdd5d27b211009f')
|
version('2.3.3', sha256='60c5ba00894c809e2c31018bccf22935a9e1f51c0184468efbdd5d27b211009f')
|
||||||
|
|
||||||
depends_on('wxwidgets')
|
variant('interactive', default=True,
|
||||||
|
description='Install prof-I (Interactive parametrization explorer)')
|
||||||
|
|
||||||
depends_on('yoda')
|
depends_on('yoda')
|
||||||
depends_on('eigen')
|
depends_on('eigen')
|
||||||
depends_on('py-cython')
|
depends_on('py-cython')
|
||||||
depends_on('py-iminuit')
|
depends_on('py-iminuit')
|
||||||
depends_on('py-matplotlib')
|
depends_on('py-matplotlib')
|
||||||
|
depends_on('py-matplotlib backend=wx', when='+interactive')
|
||||||
|
depends_on('root')
|
||||||
|
|
||||||
|
extends('python')
|
||||||
|
|
||||||
|
def setup_build_environment(self, env):
|
||||||
|
env.set('PROF_VERSION', self.spec.version)
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
make()
|
make()
|
||||||
make('PREFIX={0}'.format(prefix), "install")
|
make('PREFIX={0}'.format(prefix), "install")
|
||||||
|
if self.spec.satisfies('~interactive'):
|
||||||
|
os.remove(join_path(prefix.bin, 'prof2-I'))
|
||||||
|
Loading…
Reference in New Issue
Block a user