/aryarm-conda

Scripts, recipes, and docs for conda packages

Primary LanguageShellMIT LicenseMIT

aryarm-conda

Scripts, recipes, and docs for conda packages. Inspired by jdblischak/jdb-conda.

Build a package in this repository locally

  1. Clone this repository
    git clone https://github.com/aryarm/aryarm-conda.git
    cd aryarm-conda
    
  2. Verify that your ~/.condarc file contains the following:
    channels:
      - conda-forge
      - bioconda
      - nodefaults
    channel_priority: strict
    
    vim ~/.condarc
    
  3. Install bioconda-utils in a new environment
    conda create -y -n biobuild bioconda-utils
    
  4. Activate the new environment
    conda activate biobuild
    
  5. Build the package
    bioconda-utils build --packages PACKAGE
    
  6. Install the package in a new environment
    conda create -y -n PACKAGE -c file://${CONDA_PREFIX}/conda-bld/ PACKAGE
    
  7. Activate the new environment
    conda activate PACKAGE
    

Build a package in this repository in GitHub Codespaces

For your convenince, you may consider doing the steps above within a GitHub codespace. This will also allow you to skip steps 1-3. You can then download the built package (located at ${CONDA_PREFIX}/conda-bld/) from the codespace through the VSCode GUI.

Build a package in this repository in GitHub Actions (recommended)

Alternatively, you can skip steps 1-5 by simply forking this repository. This is probably the easiest method because it uses GitHub Actions to do all the work. Any commits to the main branch or to a pull request will trigger a bot to automatically rebuild packages from changed recipes and publish the built packages as Github Artifacts. (You may need to enable GitHub actions for your fork first.) You can then download an artifact, unzip it, and proceed with the resulting directory of files in place of the ${CONDA_PREFIX}/conda-bld/ path in step 6.