xmake icon indicating copy to clipboard operation
xmake copied to clipboard

Nanobind python 3.13.2 dependences lock

Open Baptistegrn opened this issue 3 months ago • 3 comments

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

Baptistegrn avatar Nov 29 '25 21:11 Baptistegrn

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

Willaaaaaaa avatar Nov 30 '25 01:11 Willaaaaaaa

By default, xmake uses the latest version of packages. You can use add_requireconfs to set specific Python dependency versions.

waruqi avatar Dec 01 '25 13:12 waruqi

I have tried but my xmake is break i need to delete the localdata .xmake to update nanobind

Baptistegrn avatar Dec 01 '25 14:12 Baptistegrn