我已经在本地计算机上为plink2(最新版本)编写了一份conda食谱。当我使用conda build conda_forge
在本地构建软件包时,一切正常。但是当我尝试在远程上构建软件包时,它不起作用:(问题-我认为-是我正在运行
* conda 4.7.12-本地osx64
* conda 4.3.34-远程使用linux-64
现在由于速度等原因,我不能只在远程升级conda版本。所以我的问题是如何重新编写包装配方,使其能在conda 4.3.34上构建?
所以我的食谱如下:
plink2
conda_forge
meta.yaml
meta.yaml
:
{% set version = "0.0.1" %}
package:
name: "plink2"
version: "{{ version }}"
source:
git_url: https://github.com/chrchang/plink-ng.git
build:
number: 0
script:
- cd 2.0
- make
- mkdir -p $PREFIX/bin
- cp bin/plink2 ${PREFIX}/bin/
requirements:
build:
- {{ compiler('cxx') }}
host:
- openblas # [not osx]
- zlib
run:
- openblas # [not osx]
- zlib
test:
commands:
- plink2 -h | grep "^PLINK"
在远程运行conda build conda_forge
时出现以下错误:
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Attempting to finalize metadata for plink2
INFO:conda_build.metadata:Attempting to finalize metadata for plink2
Traceback (most recent call last):
File "/local/genome/packages/anaconda3/latest/bin/conda-build", line 11, in <module>
sys.exit(main())
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 456, in main
execute(sys.argv[1:])
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 447, in execute
verify=args.verify, variants=args.variants)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/api.py", line 208, in build
notest=notest, need_source_download=need_source_download, variants=variants)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/build.py", line 2314, in build_tree
notest=notest,
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/build.py", line 1324, in build
output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/render.py", line 735, in expand_outputs
for (output_dict, m) in _m.copy().get_output_metadata_set(permit_unsatisfiable_variants=False):
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/metadata.py", line 2038, in get_output_metadata_set
bypass_env_check=bypass_env_check)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/metadata.py", line 721, in finalize_outputs_pass
permit_unsatisfiable_variants=permit_unsatisfiable_variants)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/render.py", line 509, in finalize_metadata
exclude_pattern)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/render.py", line 371, in add_upstream_pins
permit_unsatisfiable_variants, exclude_pattern)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/render.py", line 359, in _read_upstream_pin_files
permit_unsatisfiable_variants=permit_unsatisfiable_variants)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/render.py", line 143, in get_env_dependencies
channel_urls=tuple(m.config.channel_urls))
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/environ.py", line 738, in get_install_actions
locking=locking, timeout=timeout)
File "/local/genome/packages/anaconda3/latest/lib/python3.6/site-packages/conda_build/index.py", line 258, in get_build_index
if channel.scheme == "file":
AttributeError: 'str' object has no attribute 'scheme'
非常感谢,F