Yeah I don't think that applies to compiler environment variables
unfortunately.

The best I can find is onlytcmod

onlymod: Boolean/string to indicate if the toolchain should only load the
environment
        with module (True) or also set all other variables (False) like
compiler CC etc
        (If string: comma separated list of variables that will be ignored).

https://easybuild.readthedocs.org/en/latest/eb_a.html



On Tue, Jul 21, 2015 at 9:10 AM Stolpe, Oliver <[email protected]>
wrote:

>  Hello mailinglist,
>
> we wanted to use the option "unwanted_env_vars" to remove CXXFLAGS in our
> easyconfig file. Unfortunately it ignores this option during execution.
> What are we doing wrong?
>
> Easyconfig file:
> -----
> easyblock = 'MakeCp'
>
> name = 'vcflib'
> version = '1.0.0-rc0'
>
> homepage = 'https://github.com/ekg/vcflib'
> description = """vcflib provides methods to manipulate and interpret
> sequence variation as it can be described by VCF."""
>
> toolchain = {'name': 'foss', 'version': '2015a'}
>
> sources = ['%(name)s-%(version)s.tar.gz']
> source_urls = []
>
> dependencies = [('zlib', '1.2.8')]
>
> unwanted_env_vars = ['CXXFLAGS']
>
> files_to_copy =
> [(['bin/vcfregionreduce','bin/vcfindelproximity','bin/vcfvarstats','bin/vcfnosnps','bin/vcfmultiwayscripts','bin/vcfmultiallelic','bin/vcfregionreduce_uncompressed','bin/vcfnoindels','bin/vcfregionreduce_pipe','bin/vcfplotaltdiscrepancy.r','bin/vcfclearinfo','bin/vcfcomplex','bin/vcf2bed.py','bin/vcfsort','bin/bed2region','bin/vcfmultiway','bin/vcfnulldotslashdot','bin/vcfgtcompare.sh','bin/vcfremovenonATGC','bin/vcfplottstv.sh','bin/vcf_strip_extra_headers','bin/vcfplotsitediscrepancy.r','bin/vcfregionreduce_and_cut','bin/vcfnobiallelicsnps','bin/vcfplotaltdiscrepancy.sh','bin/vcfclearid','bin/vcffirstheader','bin/vcfprintaltdiscrepancy.sh','bin/vcfsnps','bin/vcfqualfilter','bin/vcf2sqlite.py','bin/vcfprintaltdiscrepancy.r','bin/plot_roc.r','bin/vcfbiallelic','bin/vcfindels'],
> 'bin'), 'LICENSE', 'README.md']
>
> sanity_check_paths = {
>     'files':
> ['bin/vcfregionreduce','bin/vcfindelproximity','bin/vcfvarstats','bin/vcfnosnps','bin/vcfmultiwayscripts','bin/vcfmultiallelic','bin/vcfregionreduce_uncompressed','bin/vcfnoindels','bin/vcfregionreduce_pipe','bin/vcfplotaltdiscrepancy.r','bin/vcfclearinfo','bin/vcfcomplex','bin/vcf2bed.py','bin/vcfsort','bin/bed2region','bin/vcfmultiway','bin/vcfnulldotslashdot','bin/vcfgtcompare.sh','bin/vcfremovenonATGC','bin/vcfplottstv.sh','bin/vcf_strip_extra_headers','bin/vcfplotsitediscrepancy.r','bin/vcfregionreduce_and_cut','bin/vcfnobiallelicsnps','bin/vcfplotaltdiscrepancy.sh','bin/vcfclearid','bin/vcffirstheader','bin/vcfprintaltdiscrepancy.sh','bin/vcfsnps','bin/vcfqualfilter','bin/vcf2sqlite.py','bin/vcfprintaltdiscrepancy.r','bin/plot_roc.r','bin/vcfbiallelic','bin/vcfindels',
> 'LICENSE', 'README.md'],
>     'dirs': [],
> }
>
> moduleclass = 'bio'
> -----
>
> From log file:
> -----
> == 2015-07-21 15:00:34,131 main.EasyConfig INFO setting config option
> unwanted_env_vars: value ['CXXFLAGS'] (type: <type 'list'>)
> == 2015-07-21 15:00:35,188 main.environment INFO Environment variable
> CXXFLAGS set to -O2 -march=native (previously undefined)
> -----
>
> Thanks,
>   Oliver
>

Reply via email to