Skip to content

Commit afbdd76

Browse files
authored
Fix version number finding regex, don't try to download zip if we already have it (#144)
1 parent 76f6953 commit afbdd76

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ SRC_DIRS = src src/%PLATFORM%
3030
# - empty which will use whatever is the latest
3131
# - undefined, no fujinet-lib will be used
3232
FUJINET_LIB =
33+
$(info FUJUNET_LIB=$(FUJINET_LIB))
3334

3435
# Some platforms don’t use FUJINET_LIB; set this to allow builds to continue
3536
# even if the library isn’t present.

makefiles/fnlib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, FUJINET_LIB, PLATFORM, COMBOS, skipIfMissing=False):
8787
self.LIBRARY_REGEX = []
8888
for platform in self.possiblePlatforms:
8989
self.LIBRARY_REGEX.extend([
90-
fr"fujinet[-.]({platform})(-{VERSION_NUM_RE})?[.]lib$",
90+
fr"fujinet[-.]({platform})-({VERSION_NUM_RE})?[.]lib$",
9191
fr"fujinet[.]lib[.]({platform})$",
9292
fr"libfujinet[.]({platform})[.]a$",
9393
])
@@ -114,7 +114,8 @@ def __init__(self, FUJINET_LIB, PLATFORM, COMBOS, skipIfMissing=False):
114114
if not self.MV.FUJINET_LIB_DIR:
115115
self.getDirectory()
116116

117-
if not self.MV.FUJINET_LIB_FILE:
117+
if not self.MV.FUJINET_LIB_FILE \
118+
and (not self.MV.FUJINET_LIB_ZIP or not os.path.exists(self.MV.FUJINET_LIB_ZIP)):
118119
self.downloadZip()
119120

120121
if not self.MV.FUJINET_LIB_INCLUDE:

0 commit comments

Comments
 (0)