Nanobind python 3.13.2 dependences lock
Xmake Version
xmake v3.0.5+master.fee49894d
Operating System Version and Architecture
Windows 11
Describe Bug
I’m trying to install Nanobind with Python 3.11, 3.12, and 3.14. I force the path and include Python 3.11, but it always installs Python 3.13.2 when I set nanobind system = false and shared = false.
Expected Behavior
It needs to include the correct Nanobind version that corresponds to the Python version specified in the Python path.
Project Configuration
add_rules("mode.release", "mode.debug")
add_requires("libsdl", {system = false, configs = {shared = false}}) add_requires("libsdl_image", {system = false, configs = {shared = false}}) add_requires("libsdl_mixer", {system = false, configs = {shared = false}}) add_requires("zlib", {system = false, configs = {shared = false}}) add_requires("expat", {system = false, configs = {shared = false}}) add_requires("quill", {system = false, configs = {shared = false}}) add_requires("nanobind", {system = false, configs = {shared = false}})
target("LibGrnGame") set_kind("shared") set_extension(".pyd")
set_targetdir("build/resultat")
add_files("src/**.cpp")
add_files("src/**.c")
if is_plat("windows") then
add_rules("utils.symbols.export_all")
end
add_packages("libsdl", "libsdl_image", "libsdl_mixer", "zlib", "expat", "nanobind", "quill")
Additional Information and Error Logs
i clear .xmake , build xmake require --uninstall nanobind xmake f -c xmake
maybe you can try this add_requireconfs("nanobind.python", {override = true, version = "3.11"})
https://xmake.io/api/description/global-interfaces.html#rewrite-package-dependency-configuration
By default, xmake uses the latest version of packages. You can use add_requireconfs to set specific Python dependency versions.
I have tried but my xmake is break i need to delete the localdata .xmake to update nanobind