Change default prefixdir for python module not for program #3
-
Xmake 版本3.0.6 操作系统版本和架构ubuntu24.4 描述问题xmake的默认行为将so文件安装到了 add_rules("mode.debug","mode.release")
add_rules("plugin.compile_commands.autoupdate", {outputdir="build"})
add_requires("python")
target("_myadd")
add_rules("python.module")
set_prefixdir("$(prefixdir)/$(pythondir)", { libdir = "", bindir = "" })
add_files("src/myadd/add.c")
add_packages("python")只有明确指定了前缀目录才能安装到正确的 可能的方案如果可以在 期待的结果默认行为就安装到正确位置 工程配置add_rules("mode.debug","mode.release")
add_rules("plugin.compile_commands.autoupdate", {outputdir="build"})
add_requires("python")
target("_myadd")
add_rules("python.module")
-- set_prefixdir("$(prefixdir)/$(pythondir)", { libdir = "myadd", bindir = "" })
add_files("src/myadd/add.c")
add_packages("python")不指定的默认行为也应该正确 附加信息和错误日志无 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
See https://github.com/xmake-io/xmake-python/blob/main/tests/examples/xmake/program/xmake.lua#L9-L10 If we change the default setting to ignore https://github.com/xmake-io/xmake-python/blob/main/tests/examples/xmake/cython/xmake.lua#L6 , https://github.com/xmake-io/xmake-python/blob/main/tests/examples/xmake/program/xmake.lua#L9-L10 will fail. |
Beta Was this translation helpful? Give feedback.
See https://github.com/xmake-io/xmake-python/blob/main/tests/examples/xmake/program/xmake.lua#L9-L10
If we change the default setting to ignore https://github.com/xmake-io/xmake-python/blob/main/tests/examples/xmake/cython/xmake.lua#L6 , https://github.com/xmake-io/xmake-python/blob/main/tests/examples/xmake/program/xmake.lua#L9-L10 will fail.
Currently, we don't have any methods to support both of them to keep back compatibility.