Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

160 maple #3

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
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
66 changes: 66 additions & 0 deletions easybuild/easyblocks/m/maple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
##
# Copyright 2009-2012 Stijn Deweirdt, Dries Verdegem, Kenneth Hoste, Pieter De Baets, Jens Timmerman
Copy link
Contributor

Choose a reason for hiding this comment

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

Stijn De Weirdt

#
# This file is part of EasyBuild,
# originally created by the HPC team of the University of Ghent (http://ugent.be/hpc).
#
# http://github.com/hpcugent/easybuild
#
# EasyBuild is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation v2.
#
# EasyBuild is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with EasyBuild. If not, see <http://www.gnu.org/licenses/>.
##
import os
import shutil
from easybuild.framework.application import Application
from easybuild.tools.filetools import run_cmd_qa

class Maple(Application):
"""Support for installing Maple."""

def unpack_src(self):
"""Unpacking of files is just copying Maple binary installer to build dir."""

for f in self.src:
shutil.copy(f['path'], os.path.join(self.builddir, f['name']))
f['finalpath'] = self.builddir

def configure(self):
pass

def make(self):
pass

def make_install(self):
"""Interactive install of Maple."""

cmd="%s/Maple%sLinuxX86_64Installer.bin"%(self.builddir, self.getcfg('version'))

qa={'PRESS <ENTER> TO CONTINUE:':'',
'DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N):':'Y',
'ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT :':self.installdir,
'IS THIS CORRECT? (Y/N):':'Y',
'Do you wish to have a shortcut installed on your desktop? ->1- Yes 2- No ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::':'2',
'->1- Single User License 2- Network License ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::':'2',
'PRESS <ENTER> TO EXIT THE INSTALLER:':'',
'License server (DEFAULT: ):':self.getcfg('licenseServer'),
'Port number (optional) (DEFAULT: ):':'',
'->1- Configure toolbox for Matlab 2- Do not configure at this time ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT::':'2'
}

no_qa=['Graphical installers are not supported by the VM. The console mode will be used instead...',
'Extracting the JRE from the installer archive...',
'Launching installer...',
"Configuring the installer for this system's environment...",
'Unpacking the JRE...',
'\[[-|]*']

run_cmd_qa(cmd,qa, no_qa=no_qa, log_all=True, simple=True)
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name='flex'
version='2.5.35'

homepage='http://www.gnu.org/software/bison'
description="""Flex (Fast Lexical Analyzer) is a tool for generating scanners. A scanner, sometimes called a tokenizer, is a program which recognizes lexical patterns in text."""
homepage='http://flex.sourceforge.net/'
description="""Flex (Fast Lexical Analyzer) is a tool for generating scanners. A scanner, sometimes called a tokenizer,
is a program which recognizes lexical patterns in text."""

toolkit={'name':'goalf','version':'1.1.0-no-OFED'}

Expand Down
5 changes: 3 additions & 2 deletions easybuild/easyconfigs/f/flex/flex-2.5.35-ictce-3.2.2.u3.eb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name='flex'
version='2.5.35'

homepage='http://www.gnu.org/software/bison'
description="""Flex (Fast Lexical Analyzer) is a tool for generating scanners. A scanner, sometimes called a tokenizer, is a program which recognizes lexical patterns in text."""
homepage='http://flex.sourceforge.net/'
description="""Flex (Fast Lexical Analyzer) is a tool for generating scanners. A scanner, sometimes called a tokenizer,
is a program which recognizes lexical patterns in text."""

toolkit={'name':'ictce','version':'3.2.2.u3'}

Expand Down
12 changes: 12 additions & 0 deletions easybuild/easyconfigs/m/Maple/Maple-15.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name='Maple'
version='15'

homepage='http://www.maplesoft.com/products/maple/'
description="""Maple combines the world's most powerful mathematical computation engine with an intuitive,
'clickable' user interface."""

toolkit={'name':'dummy','version':'dummy'}

sources=['%s%sLinuxX86_64Installer.bin'%(name,version)]

licenseServer='license.server.be'
Copy link
Contributor

Choose a reason for hiding this comment

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

This will will not actually install correctly.
We can not include it if it makes regression tests fail.

And if this does not make tests fail, we should add one that does fail.

Copy link
Author

Choose a reason for hiding this comment

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

It will install correctly, but the installation will not work because the license server setting is wrong.

We need a general way of handling this, so that the regression tester can detect this and take appropriate action in case the software run tests (if any) fail.

E.g. use "licserv.example.com" as a default setting for all license servers.

4 changes: 2 additions & 2 deletions easybuild/scripts/port_easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def run_pylint(fn):

# warnings/errors we choose to ignore
ignores_re = [
re.compile("^W:\s*[0-9,]*:[A-Za-z]*.configure: Arguments number differs from overridden method"),
re.compile("^W:\s*[0-9,]*:[A-Za-z]*.make: Arguments number differs from overridden method")
re.compile("^W:\s*[0-9,]*:[A-Za-z0-9_]*.configure: Arguments number differs from overridden method"),
re.compile("^W:\s*[0-9,]*:[A-Za-z0-9_]*.make: Arguments number differs from overridden method")
]

warning_cnt = 0
Expand Down