Skip to content

Creating a conda env from a custom package using non-Python programs

License

Notifications You must be signed in to change notification settings

stevekm/conda-package-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

conda-package-demo

Creating a conda env from a custom package.

This demo illustrates the steps required to create a custom conda package from non-Python programs.

Contents

Files in this repository:

  • Makefile: shortcuts to commands for configuring and installing Miniconda and packages

  • custom-package-0.1: directory containing custom conda package (includes README.md file with contents description)

  • custom.yml: YAML file used to create a conda env from the custom package

custom-package-0.1

The sole content of this demo custom package is the script my_script.sh, which will be made accessible from your PATH.

Usage

Clone this repository

git clone https://github.com/stevekm/conda-package-demo.git
cd conda-package-demo

Create the custom env from the custom package

make custom

or

make custom-yaml

This will:

  • download a copy of the Minconda installer to your current directory (Miniconda3-4.4.10-MacOSX-x86_64.sh used by default)

  • create a directory called conda in the current directory and install conda to that location

  • build the custom package in the custom-package-0.1 directory

  • create a conda env called custom-package-0.1 from the package

Test the new env

make test
  • output should look like this:
$ make test
source /Users/steve/projects/conda-package-demo/conda/bin/activate custom-package-0.1 && \
	my_script.sh
This is the custom package script!

Resources

Software

  • conda (Miniconda 3 used here)

  • your programs

  • this demo uses bash to install the macOS version of Miniconda (you can change this in the Makefile)

About

Creating a conda env from a custom package using non-Python programs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published