constructor conda 软件安装包构建工具

constructor 可以用来方便的进行软件包的构建,目前包含了pkg.exe,sh 可以支持不同的操作系统,以下是一个简单使用

准备conda 环境

  • 命令
conda create -n con constructor
// 激活
conda activate con

使用

construct.yaml 准备,同时还需要一些其他必备文件EULA.txt photo.png

  • construct.yaml
name: myapp
version: "2.5.5"
installer_type: sh
channels:
  - "http://repo.continuum.io/pkgs/main/"
specs:
  - python 3.10.*
  - conda
  - mkl  # [win]
  - numpy
  - scipy
  - pandas
license_file: EULA.txt
welcome_image: photo.png  # [win]
  • 构建
constructor  .
  • 效果

  • 安装

说明

以上是一个简单使用说明,使用好constructor 对于自定义conda 环境还是很方便的

参考资料

https://conda.github.io/constructor/getting-started/
https://github.com/conda/constructor
https://makeself.io/
https://github.com/megastep/makeself

posted on 2024-07-25 08:00  荣锋亮  阅读(6)  评论(0编辑  收藏  举报

导航