Skip to content

Commit 1da6243

Browse files
committed
Python < 3.7 does not support namedtuple(..., defaults=...)
1 parent 1825d34 commit 1da6243

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

julia/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ def determine_if_statically_linked():
264264
'JuliaInfo',
265265
['JULIA_HOME', 'libjulia_path', 'image_file',
266266
# Variables in PyCall/deps/deps.jl:
267-
'pyprogramname', 'libpython'],
268-
# PyCall/deps/deps.jl may not exist; The variables are then set to None:
269-
defaults=[None, None])
267+
'pyprogramname', 'libpython'])
270268

271269

272270
def juliainfo(runtime='julia'):
@@ -297,6 +295,7 @@ def juliainfo(runtime='julia'):
297295
# object file: No such file or directory":
298296
env=_enviorn)
299297
args = output.decode("utf-8").rstrip().split("\n")
298+
args.extend([None] * (len(JuliaInfo._fields) - len(args)))
300299
return JuliaInfo(*args)
301300

302301

0 commit comments

Comments
 (0)