File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ if has_config("build_cpp", "build_python") then
4040end
4141
4242if 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" )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments