1

我正在使用 conda-build 版本 3.11.0 和 conda 4.9.2 和 python 3.6.5。

conda build .在我们的项目上运行,只看到以下输出:

WARNING:conda_build.build:No files or script found for output ourtool
WARNING conda_build:bundle_conda(902): No files or script found for output ourtool
number of files: 0

请原谅我没有发布完整的日志。如果需要,我可以放更多,但我必须手动重新输入文档,因为我的开发机器受限于网络访问。

在构建的.tar.bz2中,结构如下:

/info
---files (EMPTY!)
---git
---index.json
---paths.json (EMPTY!)
---hash_input.json
---about.json
---/recipe
-------meta.yaml
-------bld.bat
-------MANIFEST.in
-------setup.py
-------.gitlab-ci.yml
-------requirements.txt
-------README.md
-------conda_build_config.yaml
-------/ourtool
---------__init__.py
---------mypythonfile.py
---------otherpythonfile.py
---------miscsettings.py

当我尝试使用 conda install 安装软件包时,我得到以下输出:

Preparing Transaction: done
Executing transaction: done

但是站点包中的文件夹是空的!

项目结构如下:

meta.yaml
bld.bat
MANIFEST.in
setup.py
.gitlab-ci.yml
requirements.txt
README.md
conda_build_config.yaml
/ourtool
--__init__.py
--mypythonfile.py
--otherpythonfile.py
--miscsettings.py

元.yaml

{% set data = load_setup_py_data() %}

package:
   name: ourtool
   version: {{ data.get('version') }}

source:
    - path: ./ourtool
      folder: ourtool
    - path: ./setup.py
    - path: ./MANIFEST.in
    - path: ./README.md

build:
   number: 0
   entrypoints:
    - run_ourtool = ourtool.our_tool_main:main

requirements:
   build:
       - python {{python}}
       - setuptools
       - psutil
       - requests
       - ourinternalticketingtool
       - pandas
       - openpyxl
       - pyqt>5
       - lxml
   run:
       - python {{python}}
       - psutil
       - requests
       - ourinternalticketingtool
       - pandas
       - openpyxl
       - pyqt>5
       - lxml

设置.py:

from setuptools import setup, find_packages
setup(
    name='ourtool',
    version='1.0.0',
    author='Me',
    url="https://ourinternalrepo.com/ourtool",
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        "psutil",
        "requests",
        "ourinternalticketingtool",
        "pandas",
        "openpyxl",
        "PyQt5",
        "lxml"
])

构建.bat:

"%PYTHON%" setup.py install
if errorlevel 1 exit 1

conda_build_config.yaml:

python:
   -3.6

清单文件

include *.md
include requirements.txt

要求.txt

.

4

0 回答 0