Skip to content

updated for MATLAB 2017a#1182

Merged
boegel merged 5 commits intoeasybuilders:developfrom
hajgato:matlab17a
Jun 8, 2017
Merged

updated for MATLAB 2017a#1182
boegel merged 5 commits intoeasybuilders:developfrom
hajgato:matlab17a

Conversation

@hajgato
Copy link
Copy Markdown
Collaborator

@hajgato hajgato commented May 18, 2017

Matlab 2017a install complains that you should not run the installed from the root directory of install CD.

Comment thread easybuild/easyblocks/m/matlab.py Outdated

if LooseVersion(self.version) >= LooseVersion('2017a'):
jdir = os.path.join(self.cfg['start_dir'], 'sys', 'java', 'jre', 'glnxa64', 'jre', 'bin')
for perm_file in [os.path.join(self.cfg['start_dir'], 'bin', 'glnxa64'), jdir]:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't you mean perm_dir here? It's a whole directory?

Comment thread easybuild/easyblocks/m/matlab.py Outdated
chdircmd = 'cd %s &&' % self.builddir
installerpath = self.cfg['start_dir']

cmd = "%s %s %s/install -v -inputFile %s %s" % (self.cfg['preinstallopts'], chdircmd, installerpath, self.configfile,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wouldn't do it like this. Do the chdir before getting to this line (in the if). Mixing in the chdircmd and preinstallopts might do weird things.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@wpoely86 fixed

Comment thread easybuild/easyblocks/m/matlab.py Outdated
self.cfg['preinstallopts'] = ('export _JAVA_OPTIONS="%s" && ' % self.cfg['java_options']) + self.cfg['preinstallopts']
cmd = "%s ./install -v -inputFile %s %s" % (self.cfg['preinstallopts'], self.configfile, self.cfg['installopts'])
if LooseVersion(self.version) >= LooseVersion('2017a'):
run_cmd('cd %s' % self.builddir, log_all=True, simple=True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use change_dir from easybuild.tools.filetools

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@wpoely86 Done

@boegel
Copy link
Copy Markdown
Member

boegel commented Jun 8, 2017

lgtm, tested with easybuilders/easybuild-easyconfigs#4616, good to go, thanks @hajgato!

@boegel boegel merged commit 7c0b1b1 into easybuilders:develop Jun 8, 2017
@hajgato hajgato deleted the matlab17a branch February 12, 2018 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants