如何将os.iorun函数返回的结果作为add_requires的参数? #3302
Unanswered
wangyexiang
asked this question in
Q&A
Replies: 1 comment
-
不支持,不要乱用。。另外 xmake-repo 仓库有 torch 包,可以直接用 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
大家好,我是新接触xmake,想请教一个问题,如何将os.iorun函数返回的结果作为add_requires的参数?
我期望的代码如下:
但是会报错:
error: .\xmake.lua:6: field 'iorun' is not callable (a nil value)
如果我将上面的代码放在before_build中,即:
它又会报错:
error: global 'add_requires' is not callable (a nil value)
请问一下,有办法将
torch_install_prefix
作为add_requires的参数吗?Beta Was this translation helpful? Give feedback.
All reactions