Skip to content

Commit e16c464

Browse files
committed
Wrap pathlib in str
1 parent aa2e1a9 commit e16c464

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

relenv/build/linux.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,15 @@ def build_python(env, dirs, logfp):
385385
"sed",
386386
"-i",
387387
's/^expected_libexpat_tag.*$/expected_libexpat_tag="R_2_7_3"',
388-
bash_refresh,
388+
str(bash_refresh),
389389
]
390390
)
391391
runcmd(
392392
[
393393
"sed",
394394
"-i",
395395
's/^expected_libexpat_ver.*$/expected_libexpat_version="2.7.3"',
396-
bash_refresh,
396+
str(bash_refresh),
397397
]
398398
)
399399
expat_hash = "821ac9710d2c073eaf13e1b1895a9c9aa66c1157a99635c639fbff65cdbdd732"
@@ -402,18 +402,18 @@ def build_python(env, dirs, logfp):
402402
"sed",
403403
"-i",
404404
f's/^expected_libexpat_sha.*$/expected_libexpat_sha256="{expat_hash}"',
405-
bash_refresh,
405+
str(bash_refresh),
406406
]
407407
)
408408
run_cmd([bash_refresh])
409409

410410
print("#" * 80)
411411
expat_root = pathlib.Path(dirs.source) / "Modules" / "expat"
412-
run_cmd(["cat", expat_root / "expat.h"])
413-
run_cmd(["cat", expat_root / "internal.h"])
414-
run_cmd(["cat", expat_root / "refresh.sh"])
415-
run_cmd(["cat", expat_root / "xmlparse.c"])
416-
run_cmd(["cat", expat_root / "xmlrole.h"])
412+
run_cmd(["cat", str(expat_root / "expat.h")])
413+
run_cmd(["cat", str(expat_root / "internal.h")])
414+
run_cmd(["cat", str(expat_root / "refresh.sh")])
415+
run_cmd(["cat", str(expat_root / "xmlparse.c")])
416+
run_cmd(["cat", str(expat_root / "xmlrole.h")])
417417
print("#" * 80)
418418

419419
if pathlib.Path("setup.py").exists():

0 commit comments

Comments
 (0)