Skip to content

Commit 5b05c52

Browse files
committed
update xmake.lua
1 parent db8d257 commit 5b05c52

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/d/dynareadout/port/xmake.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ if has_config("build_cpp", "build_python") then
4040
end
4141

4242
if has_config("build_python") then
43-
add_requires("python 3.x", "pybind11")
43+
add_requires("pybind11")
4444
target("pybind11_module")
4545
set_languages("cxx17")
4646
add_deps("dynareadout_cpp")
47-
add_packages("python", "pybind11")
47+
add_packages("pybind11")
4848
add_rules("python.module")
4949
set_basename("dynareadout" .. (is_mode("debug") and "_d" or ""))
5050
add_options("profiling")

packages/d/dynareadout/xmake.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ package("dynareadout")
1616
else
1717
package:add("links", "dynareadout")
1818
end
19+
if package:config("python_bind") and not package:is_plat("mingw") then
20+
package:add("deps", "pybind11")
21+
end
1922
if package:is_plat("macosx") then
2023
package:add("deps", "boost", {configs = {filesystem = true}})
2124
end
@@ -27,7 +30,7 @@ package("dynareadout")
2730
local configs = {}
2831
configs.build_cpp = package:config("cpp_bind") and "y" or "n"
2932
configs.profiling = package:config("profiling") and "y" or "n"
30-
configs.build_python = package:config("python_bind") and "y" or "n"
33+
configs.build_python = (package:config("python_bind") and not package:is_plat("mingw")) and "y" or "n"
3134
import("package.tools.xmake").install(package, configs)
3235
wprint("The original repository PucklaJ/dynareadout is no longer public. You are using a mirror of this repository.")
3336
end)

0 commit comments

Comments
 (0)