Use python3 instead of python binary for configuring libnode on Linux

This commit is contained in:
Julian Groß 2023-10-02 22:32:51 +02:00 committed by Edgar
parent 177d67dbbd
commit c7fd18059e
No known key found for this signature in database
GPG key ID: 3C2E1F2C1C353131

View file

@ -106,14 +106,17 @@ class libnodeConan(ConanFile):
if self.settings.os == "Linux":
args.append("--gdb")
self.run(
"python configure.py %s" % (" ".join(args)), env=["node_build_env"]
)
if self.settings.os == "Windows":
self.run(
"python configure.py %s" % (" ".join(args)), env=["node_build_env"]
)
# self.run("ninja libnode", env=["node_build_env"])
msbuild = MSBuild(self)
msbuild.build("node.sln", targets=["libnode"])
else:
self.run(
"python3 configure.py %s" % (" ".join(args)), env=["node_build_env"]
)
autotools = Autotools(self)
autotools.make(args=["-C out", "BUILDTYPE=%s" % self.settings.build_type], target="libnode")