Skip to content

Commit

Permalink
Fix style errors in var/spack/repos/builtin/packages/libiconv/package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Aug 14, 2023
1 parent 253be8d commit d5c7055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions var/spack/repos/builtin/packages/libiconv/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import re

from spack.package import *

Expand Down Expand Up @@ -42,10 +43,9 @@ class Libiconv(AutotoolsPackage, GNUMirrorPackage):

@classmethod
def determine_version(cls, exe):
import re
# We only need to find libiconv on macOS to avoid problems with _iconv vs _libiconv - see
# https://stackoverflow.com/questions/57734434/libiconv-or-iconv-undefined-symbol-on-mac-osx
macos_pattern = re.compile("\(GNU libiconv (\w+\.\w+)\)")
macos_pattern = re.compile("\(GNU libiconv (\w+\.\w+)\)") # noqa: W605
version_string = Executable(exe)("--version", output=str, error=str)
match = macos_pattern.search(version_string)
version = None
Expand Down

0 comments on commit d5c7055

Please sign in to comment.