
* 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.
37 lines
1.3 KiB
Python
37 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)
|
|
|
|
from glob import glob
|
|
|
|
from spack import *
|
|
|
|
|
|
class AsperaCli(Package):
|
|
"""The Aspera CLI client for the Fast and Secure Protocol (FASP)."""
|
|
|
|
homepage = "https://asperasoft.com"
|
|
url = "https://download.asperasoft.com/download/sw/cli/3.7.7/aspera-cli-3.7.7.608.927cce8-linux-64-release.sh"
|
|
|
|
version('3.7.7', sha256='83efd03b699bdb1cac6c62befb3812342d6122217f4944f732ae7a135d578966',
|
|
url='https://download.asperasoft.com/download/sw/cli/3.7.7/aspera-cli-3.7.7.608.927cce8-linux-64-release.sh',
|
|
expand=False)
|
|
|
|
def setup_run_environment(self, env):
|
|
env.prepend_path('PATH', self.prefix.cli.bin)
|
|
|
|
def install(self, spec, prefix):
|
|
runfile = glob(join_path(self.stage.source_path, 'aspera-cli*.sh'))[0]
|
|
# Update destination path
|
|
filter_file('INSTALL_DIR=~/.aspera',
|
|
'INSTALL_DIR=%s' % prefix,
|
|
runfile,
|
|
string=True,
|
|
stop_at='__ARCHIVE_FOLLOWS__')
|
|
# Install
|
|
chmod = which('chmod')
|
|
chmod('+x', runfile)
|
|
runfile = which(runfile)
|
|
runfile()
|