diff options
author | Denis Davydov <davydden@gmail.com> | 2016-07-16 07:58:51 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-07-16 07:58:51 +0200 |
commit | 9ea4f80f154f264986dcadf9de4dd192b8dce037 (patch) | |
tree | bac1d65bd34d49056f2dce5e19ed231cf37e2894 /lib | |
parent | 987fb137f97b8673efdcd126bef56bc6c8d06dc0 (diff) | |
download | spack-9ea4f80f154f264986dcadf9de4dd192b8dce037.tar.gz spack-9ea4f80f154f264986dcadf9de4dd192b8dce037.tar.bz2 spack-9ea4f80f154f264986dcadf9de4dd192b8dce037.tar.xz spack-9ea4f80f154f264986dcadf9de4dd192b8dce037.zip |
flake8 fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/llnl/util/filesystem.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index adb6b8034e..6e4cd338fe 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -430,12 +430,14 @@ def fix_darwin_install_name(path): subprocess.Popen(["install_name_tool", "-change", dep, loc, lib], stdout=subprocess.PIPE).communicate()[0] # NOQA: ignore=E501 break + def to_lib_name(library): """Transforms a path to the library /path/to/lib<name>.xyz into <name> """ # Assume libXYZ.suffix return os.path.basename(library)[3:].split(".")[0] + def to_link_flags(library): """Transforms a path to a <library> into linking flags -L<dir> -l<name>. |