Skip to content
Snippets Groups Projects
Commit c043275f authored by Adam J. Stewart's avatar Adam J. Stewart
Browse files

Final flake8 changes

parent 5879f820
Branches
Tags
No related merge requests found
...@@ -134,4 +134,3 @@ def symlink_license(pkg): ...@@ -134,4 +134,3 @@ def symlink_license(pkg):
os.symlink(target, link_name) os.symlink(target, link_name)
tty.msg("Added local symlink %s to global license file" % tty.msg("Added local symlink %s to global license file" %
link_name) link_name)
...@@ -407,7 +407,6 @@ def global_license_file(self): ...@@ -407,7 +407,6 @@ def global_license_file(self):
return join_path(global_license_dir, self.name, return join_path(global_license_dir, self.name,
os.path.basename(self.license_files[0])) os.path.basename(self.license_files[0]))
@property @property
def version(self): def version(self):
if not self.spec.versions.concrete: if not self.spec.versions.concrete:
...@@ -1021,7 +1020,6 @@ def check_paths(path_list, filetype, predicate): ...@@ -1021,7 +1020,6 @@ def check_paths(path_list, filetype, predicate):
raise InstallError( raise InstallError(
"Install failed for %s. Nothing was installed!" % self.name) "Install failed for %s. Nothing was installed!" % self.name)
def do_install_dependencies(self, **kwargs): def do_install_dependencies(self, **kwargs):
# Pass along paths of dependencies here # Pass along paths of dependencies here
for dep in self.spec.dependencies.values(): for dep in self.spec.dependencies.values():
...@@ -1349,11 +1347,9 @@ def fetch_remote_versions(self): ...@@ -1349,11 +1347,9 @@ def fetch_remote_versions(self):
def rpath(self): def rpath(self):
"""Get the rpath this package links with, as a list of paths.""" """Get the rpath this package links with, as a list of paths."""
rpaths = [self.prefix.lib, self.prefix.lib64] rpaths = [self.prefix.lib, self.prefix.lib64]
rpaths.extend(d.prefix.lib rpaths.extend(d.prefix.lib for d in self.spec.traverse(root=False)
for d in self.spec.traverse(root=False)
if os.path.isdir(d.prefix.lib)) if os.path.isdir(d.prefix.lib))
rpaths.extend(d.prefix.lib64 rpaths.extend(d.prefix.lib64 for d in self.spec.traverse(root=False)
for d in self.spec.traverse(root=False)
if os.path.isdir(d.prefix.lib64)) if os.path.isdir(d.prefix.lib64))
return rpaths return rpaths
......
...@@ -13,10 +13,10 @@ class AllineaForge(Package): ...@@ -13,10 +13,10 @@ class AllineaForge(Package):
# Licensing # Licensing
license_required = True license_required = True
license_comment = '#' license_comment = '#'
license_files = ['licences/Licence'] license_files = ['licences/Licence']
license_vars = ['ALLINEA_LICENCE_FILE', 'ALLINEA_LICENSE_FILE'] license_vars = ['ALLINEA_LICENCE_FILE', 'ALLINEA_LICENSE_FILE']
license_url = 'http://www.allinea.com/user-guide/forge/Installation.html' license_url = 'http://www.allinea.com/user-guide/forge/Installation.html'
def url_for_version(self, version): def url_for_version(self, version):
# TODO: add support for other architectures/distributions # TODO: add support for other architectures/distributions
......
...@@ -13,10 +13,10 @@ class AllineaReports(Package): ...@@ -13,10 +13,10 @@ class AllineaReports(Package):
# Licensing # Licensing
license_required = True license_required = True
license_comment = '#' license_comment = '#'
license_files = ['licences/Licence'] license_files = ['licences/Licence']
license_vars = ['ALLINEA_LICENCE_FILE', 'ALLINEA_LICENSE_FILE'] license_vars = ['ALLINEA_LICENCE_FILE', 'ALLINEA_LICENSE_FILE']
license_url = 'http://www.allinea.com/user-guide/reports/Installation.html' license_url = 'http://www.allinea.com/user-guide/reports/Installation.html'
def url_for_version(self, version): def url_for_version(self, version):
# TODO: add support for other architectures/distributions # TODO: add support for other architectures/distributions
......
...@@ -11,10 +11,10 @@ class Nag(Package): ...@@ -11,10 +11,10 @@ class Nag(Package):
# Licensing # Licensing
license_required = True license_required = True
license_comment = '!' license_comment = '!'
license_files = ['lib/nag.key'] license_files = ['lib/nag.key']
license_vars = ['NAG_KUSARI_FILE'] license_vars = ['NAG_KUSARI_FILE']
license_url = 'http://www.nag.com/doc/inun/np61/lin-mac/klicence.txt' license_url = 'http://www.nag.com/doc/inun/np61/lin-mac/klicence.txt'
def url_for_version(self, version): def url_for_version(self, version):
# TODO: url and checksum are architecture dependent # TODO: url and checksum are architecture dependent
......
...@@ -15,29 +15,29 @@ class Pgi(Package): ...@@ -15,29 +15,29 @@ class Pgi(Package):
set up a mirror, see http://software.llnl.gov/spack/mirrors.html""" set up a mirror, see http://software.llnl.gov/spack/mirrors.html"""
homepage = "http://www.pgroup.com/" homepage = "http://www.pgroup.com/"
url = "file://%s/pgi-16.3.tar.gz" % os.getcwd() url = "file://%s/pgi-16.3.tar.gz" % os.getcwd()
version('16.3', '618cb7ddbc57d4e4ed1f21a0ab25f427') version('16.3', '618cb7ddbc57d4e4ed1f21a0ab25f427')
variant('network', default=True, variant('network', default=True,
description="Perform a network install") description="Perform a network install")
variant('single', default=False, variant('single', default=False,
description="Perform a single system install") description="Perform a single system install")
variant('nvidia', default=False, variant('nvidia', default=False,
description="Enable installation of optional NVIDIA components") description="Enable installation of optional NVIDIA components")
variant('amd', default=False, variant('amd', default=False,
description="Enable installation of optional AMD components") description="Enable installation of optional AMD components")
variant('java', default=False, variant('java', default=False,
description="Enable installation of Java Runtime Environment") description="Enable installation of Java Runtime Environment")
variant('mpi', default=False, variant('mpi', default=False,
description="Enable installation of Open MPI") description="Enable installation of Open MPI")
# Licensing # Licensing
license_required = True license_required = True
license_comment = '#' license_comment = '#'
license_files = ['license.dat'] license_files = ['license.dat']
license_vars = ['PGROUPD_LICENSE_FILE', 'LM_LICENSE_FILE'] license_vars = ['PGROUPD_LICENSE_FILE', 'LM_LICENSE_FILE']
license_url = 'http://www.pgroup.com/doc/pgiinstall.pdf' license_url = 'http://www.pgroup.com/doc/pgiinstall.pdf'
def install(self, spec, prefix): def install(self, spec, prefix):
# Enable the silent installation feature # Enable the silent installation feature
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment