我正在尝试在 Windows 10 下我的一个文件的部分中使用新的{{ compiler('c') }}
Jinja 命令。但是,当我这样做时,构建中断,无法“找到” ,这很奇怪,因为它确实找到了我的Visual Studio安装(即 - 我在日志中看到正确的 VS 版本号。)。相反,我能够成功构建,但这给我留下了一个不可移植的文件。:(requirements:build
meta.yaml
conda build
cl.exe
vs2019_win-64
meta.yaml
有谁知道我需要做什么才能让它工作?
根据@merv 的要求:
conda-build
版本:
(base)
$ conda-build --version
conda-build 3.20.5
我正在尝试构建的一个包,它表现出上述行为,是:Chaco
. 这是我的构建meta.yaml
文件的内容:Chaco
{% set name = "chaco" %}
{% set version = "5.0.0.1" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
# path: ../../chaco/
git_url: https://github.com/enthought/chaco.git
git_rev: 5.0.0
build:
number: 1
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
requirements:
build:
- setuptools
# - vs2019_win-64 # Uncomment for Windows build only.
# - {{compiler('c')}} # Would like to get one of these working, instead of above hack.
# - {{compiler('cxx')}}
- git
- cmake
host:
- python
- enable =5.2.1.1
- Cython
- importlib_resources
run:
# - python
- enable =5.2.1.1
# - cython
- importlib_resources
test:
# Python imports
imports:
- chaco
- chaco.api
# - chaco.contour
# - chaco.downsample
# - chaco.downsample.tests
# - chaco.layers
# - chaco.overlays
# - chaco.plugin
# - chaco.scales
# - chaco.scales.tests
# - chaco.shell
# - chaco.tests
# - chaco.tools
# - chaco.tools.tests
# - chaco.tools.toolbars
- chaco.ui
# commands:
# You can put test commands to be run here. Use this to test that the
# entry points work.
# You can also put a file called run_test.py in the recipe that will be run
# at test time.
# requires:
# Put any additional test requirements here. For example
# - nose
about:
home: http://docs.enthought.com/chaco
license: BSD License
summary: 'interactive 2-dimensional plotting'
license_family: BSD
# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
extra:
recipe-maintainers:
- capn-freako