这个 conda 配方(完整语法这里)---
package:
name: qcon
version: 2020.02.05
source:
- git_url: https://github.com/KxSystems/kdb.git
git_depth: 1
build:
script:
- ARCH=l #[linux]
- ARCH=m #[osx]
- ARCH="$ARCH"64 #[x86_64]
- mkdir -p $PREFIX/bin
- cp $SRC_DIR/$ARCH/qcon $PREFIX/bin
test:
commands:
- echo \\\\ | qcon # [linux64]
产生警告:
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
是否可以消除警告?打包的二进制文件是独立的,根本不依赖于 Python 或 numpy。
完整的日志上下文可在 Github Gist
中找到我假设您正在运行 conda-build,这就是您收到警告的地方。
是的,可以消除警告。
但是,它会声明 conda-build 使用 numpy 版本。如果这不打扰您,因为不需要,请运行 conda-build 带有选项:--numpy 环境中安装的 NUMPY 版本将使信息/警告消息消失。