
* fix remaining flake8 errors * imports: sort imports everywhere in Spack We enabled import order checking in #23947, but fixing things manually drives people crazy. This used `spack style --fix --all` from #24071 to automatically sort everything in Spack so PR submitters won't have to deal with it. This should go in after #24071, as it assumes we're using `isort`, not `flake8-import-order` to order things. `isort` seems to be more flexible and allows `llnl` mports to be in their own group before `spack` ones, so this seems like a good switch.
43 lines
1.3 KiB
Python
43 lines
1.3 KiB
Python
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
import os
|
|
|
|
from spack import *
|
|
|
|
|
|
class Idl(Package):
|
|
"""IDL Software: Interactive Data Visulation.
|
|
|
|
Note: IDL is a licensed software. You will also need an existing
|
|
downloaded tarball of IDL in your current directory or in a
|
|
spack mirror in order to install."""
|
|
|
|
homepage = "https://www.harrisgeospatial.com/Software-Technology/IDL"
|
|
manual_download = True
|
|
url = "file://{0}/idl8.7-linux.tar.gz".format(os.getcwd())
|
|
|
|
maintainers = ['francinelapid']
|
|
|
|
license_required = True
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
# replace default install dir to self.prefix by editing answer file
|
|
filter_file('/usr/local/harris', prefix, 'silent/idl_answer_file')
|
|
|
|
# execute install script
|
|
install_script = Executable('./install.sh')
|
|
install_script('-s', input='silent/idl_answer_file')
|
|
|
|
def setup_run_environment(self, env):
|
|
|
|
# set necessary environment variables
|
|
env.prepend_path('EXELIS_DIR', self.prefix)
|
|
env.prepend_path('IDL_DIR', self.prefix.idl)
|
|
|
|
# add bin to path
|
|
env.prepend_path('PATH', self.prefix.idl.bin)
|