Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions easybuild/easyblocks/generic/configuremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@
@author: Toon Willems (Ghent University)
"""

import stat
import os
from easybuild.framework.easyblock import EasyBlock
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.run import run_cmd
from easybuild.tools.filetools import adjust_permissions


class ConfigureMake(EasyBlock):
Expand Down Expand Up @@ -79,6 +82,9 @@ def configure_step(self, cmd_prefix=''):
for (key, val) in tar_vars.items():
self.cfg.update('preconfigopts', "%s='%s'" % (key, val))

# Ensure that configure has the excutable bit set, needed if a patch created configure itself
if os.path.exists('configure'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indentation (one or two leading spaces too much):

Failed to obtain class for ConfigureMake easyblock (not available?): unindent does not match any outer indentation level (configuremake.py, line 86)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blappm: ping on this?

adjust_permissions('configure', stat.S_IXUSR, add=True)
cmd = "%(preconfigopts)s %(cmd_prefix)s./configure %(prefix_opt)s%(installdir)s %(configopts)s" % {
'preconfigopts': self.cfg['preconfigopts'],
'cmd_prefix': cmd_prefix,
Expand Down