Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Mar 29, 2024
1 parent 83b7efb commit a2fd347
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion relenv/build/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,14 @@ def build_python(env, dirs, logfp):
]

runcmd(cmd, env=env, stderr=logfp, stdout=logfp)
runcmd(["sed", "-i", "s/#readline readline.c -lreadline -ltermcap/readline readline.c -lreadline -ltinfow/g", "Modules/Setup"])
runcmd(
[
"sed",
"-i",
"s/#readline readline.c -lreadline -ltermcap/readline readline.c -lreadline -ltinfow/g",
"Modules/Setup",
]
)
with io.open("Modules/Setup", "a+") as fp:
fp.seek(0, io.SEEK_END)
fp.write("*disabled*\n" "_tkinter\n" "nsl\n" "nis\n")
Expand Down
6 changes: 3 additions & 3 deletions relenv/buildenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ def buildenv(relenv_path=None):
"CC": f"{toolchain}/bin/{triplet}-gcc -no-pie",
"CXX": f"{toolchain}/bin/{triplet}-g++ -no-pie",
"CFLAGS": (
# f"-L{relenv_path}/lib -L{toolchain}/{triplet}/sysroot/lib "
# f"-L{relenv_path}/lib -L{toolchain}/{triplet}/sysroot/lib "
f"-I{relenv_path}/include "
f"-I{toolchain}/sysroot/usr/include"
),
"CPPFLAGS": (
# f"-L{relenv_path}/lib -L{toolchain}/{triplet}/sysroot/lib "
# f"-L{relenv_path}/lib -L{toolchain}/{triplet}/sysroot/lib "
f"-I{relenv_path}/include -I{toolchain}/{triplet}/sysroot/usr/include"
),
"CMAKE_CFLAGS": (
# f"-L{relenv_path}/lib -L{toolchain}/{triplet}/sysroot/lib "
# f"-L{relenv_path}/lib -L{toolchain}/{triplet}/sysroot/lib "
f"-I{relenv_path}/include -I{toolchain}/{triplet}/sysroot/usr/include"
),
"LDFLAGS": (
Expand Down

0 comments on commit a2fd347

Please sign in to comment.