【发布时间】:2021-12-06 16:31:54
【问题描述】:
大家好,
我正在尝试为我编写的一个小程序构建一个 conda 包。当我运行conda-build 时,我收到错误 Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
我已经研究了几个小时(在这里找到了类似的问题,但都没有解决我的问题)并使用了 meta.yaml 文件(如下),但我没有设法让它工作。有谁知道这里会发生什么?
meta.yaml:
{% set name = "genview" %}
{% set version = "1.0" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
git_url: https://github.com/EbmeyerSt/GEnView.git
build:
number: 0
script: python -m pip install --no-deps --ignore-installed .
requirements:
host:
- pip
- python=3.6
run:
- python=3.6
- pip
- pandas
- biopython >=1.68
- numpy
- time
- sqlite
- argparse
- prodigal
- diamond
- blast
- cd-hit
- fasttree
test:
commands:
- genview_create_db.py --help
about:
home: https://github.com/EbmeyerSt/GEnView.git
license: GPLv3.0
license_family: GPL3
summary: Visualization tool for genomic sequences surrounding a gene
目录结构:
../genview:
-script.py
-Readme.txt
/conda_receipe:
-meta.yaml
为了构建包,我从 genview 目录运行 conda-build /conda_receipe。有谁知道这里发生了什么?任何线索将不胜感激!
【问题讨论】:
标签: python pip anaconda conda conda-build