Hi Niek,

The configure step is skipped by default by MakeCp, so defining preconfigopts is not going to help; prebuildopts is what you're looking for.

Besides that, you need to make sure that the 'make' command being executed doesn't get mangled; this is typically done using '&&' at the end.

So, try this:

prebuildopts = "cp make.inc.example make.inc && "


regards,

Kenneth

On 23/03/16 10:49, Niek de Klein wrote:
Hi all,

I am trying to make an easyconfig for CLAPACK
(http://www.netlib.org/clapack/). The tar includes make.inc.example
which has to be copied to make.inc. I tried

     preconfigopts = 'cp make.inc.example make.inc'
     preconfigopts = 'cp /path/to/extracted_tar/make.inc.example
/path/to/extracted_tar
     preinstallcmds = 'cp make.inc.example make.inc'
     preinstallcmds = 'cp /path/to/extracted_tar/make.inc.example
/path/to/extracted_tar

but these did not work. Anyone know what command I should use? Below
is the easybuild file I have

Thanks!
Niek



easyblock = 'MakeCp'

name = 'CLAPACK'
version = '3.2.1'
name_lower = name.lower()

homepage = 'http://www.netlib.org/clapack/'
description = """The CLAPACK library was built using a Fortran to C
conversion utility called f2c.
                  The entire Fortran 77 LAPACK library is run through
f2c to obtain C code,
                  and then modified to improve readability.
                  CLAPACK's goal is to provide LAPACK for someone who
does not have access to a Fortran compiler. """

toolchain = {'name': 'foss', 'version': '2015b'}
toolchainopts = {'optarch': True, 'usempi': True}

dependencies = [('CMake','3.2.2')]

# http://www.netlib.org/clapack/clapack-3.2.1-CMAKE.tgz
source_urls = ['http://www.netlib.org/%s' % name_lower]
sources = ['%s-%s-CMAKE.tgz' % (name_lower, version)]

preinstallcmds = ['cp
/apps/.tmp/easybuild/builds/CLAPACK/3.2.1/foss-2015b/make.inc.example
/apps/.tmp/easybuild/builds/CLAPACK/3.2.1/foss-2015b/make.inc']


files_to_copy = [('clapack','bin/')]

moduleclass = 'tools'

Reply via email to