summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/build-env-compiler-var-b/package.py
blob: 6854daa933179979eef89cb286edc3e30736b0e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class BuildEnvCompilerVarB(Package):
    """Package with runtime variable that should be dropped in the parent's build environment."""

    url = "https://www.example.com"
    version("1.0", md5="0123456789abcdef0123456789abcdef")

    def setup_run_environment(self, env):
        env.set("CC", "this-should-be-dropped")
        env.set("CXX", "this-should-be-dropped")
        env.set("FC", "this-should-be-dropped")
        env.set("F77", "this-should-be-dropped")
        env.set("ANOTHER_VAR", "this-should-be-present")