Questions tagged [conda-build]

Conda-build refers to the toolset used for creating Conda package builds. Questions should relate to package build creation, management, and testing. Questions about using Conda or Conda packages should use the [conda] tag. Questions about installation behavior could overlap.

Conda-build is a toolset for generating package builds for Conda, a multi-language, multi-platform package and virtual environment management system. Like much of the Conda infrastructure, it is distributed as a Python package with entry points that define a CLI for common operations.

In addition to supporting de novo package development, it also provides a set of quick-start tools, such as conda-build skeleton, that allow users to easily generate a Conda package from existing packages in language-specific repositories, such as PyPI or CRAN.

Resources

Official Documentation

GitHub Repository

161 questions
1
vote
0 answers

Conda build using previously built/deployed package

My current flow is to build package-a, then deploy package-a to Artifactory. Then I'm building package-b pointing at artifactory channels that contain the package-a conda package. However, I'm getting a lot (hundreds) of dependency conflicts when I…
RustyShackleford
  • 25,262
  • 6
  • 22
  • 38
1
vote
1 answer

What is after second = in conda dependencies yml. Example pandas=1.2.4=py38h1abd341_0

I am generating conda dependencies YAML and I don't entirely understand the information that is presented there. In pandas=1.2.4=py38h1abd341_0 I know that it is pandas 1.2.4 version but what is py38h1abd341_0?
figs_and_nuts
  • 4,870
  • 2
  • 31
  • 56
1
vote
1 answer

How to specify the source (git branch) of a conda build package

I created a conda package that build successfully, and that I can install with conda. I am using versioneer to automatically generate the version number of my builds. My project is in a git repository with multiple branches. My problem is that when…
BayesianMonk
  • 540
  • 7
  • 23
1
vote
0 answers

How to make {{ compiler('c') }} work, in meta.yaml for conda build, under Windows 10?

I'm trying to use the new {{ compiler('c') }} Jinja command in the requirements:build section of one of my meta.yaml files for conda build, under Windows 10. However, when I do, the build breaks, unable to "find" cl.exe, which is strange, because it…
dbanas
  • 1,707
  • 14
  • 24
1
vote
0 answers

conda package selector on target environment

I wonder if you can specify a selector on a dependency within a conda package recipe to only select it, if a given package is installed within the installation environment target. So image a recipe like this: package: name: foo version:…
marscher
  • 800
  • 1
  • 5
  • 22
1
vote
1 answer

How to install requirements for a target defined in meta.yaml

I have meta.yaml which has a section looking a little bit like this: requirements: build: - pylint 2.7.* run: - sqlalchemy 1.3.* How can I install just requirements needed for build? Is there something like conda install --target build?
zoran119
  • 10,657
  • 12
  • 46
  • 88
1
vote
1 answer

Conda package, pure but with entry points

A noarch conda recipe seems not to work when being built on Windows, as the entry point gets a wrapper with an .exe extension. This makes conda-build complain, that the resulting package is not no-arch any more. This makes somehow sense, but the…
marscher
  • 800
  • 1
  • 5
  • 22
1
vote
0 answers

conda refuses to install no matter python version

I've created a package with no particular requirements for Python version, when I create conda environment with Python 3.8, it tells me that it will only install if I change my Python version to anything else, but Python 3.8, when I try it with 3.9,…
wvxvw
  • 8,089
  • 10
  • 32
  • 61
1
vote
0 answers

Is it possible to link to MATLAB libmex from an automated build system?

I'd like to distribute a program through conda (so built using conda-build) that links to MATLAB's libmex. Is it possible to get the libmex library onto a public build system like conda, GitHub Actions, or Homebrew? Is there another method for this?
raf
  • 535
  • 4
  • 18
1
vote
1 answer

changing build string for conda package

When I first ran conda-build myrecipe the tar.bz2 had the name 'mypackage-version-py38_0.tar.bz2' however every time I have run it since, the build string is 'mypackage-version-py38head00f5_0.tar.bz2'. Why is 'head00f5' now being added to the build…
dshanahan
  • 676
  • 5
  • 12
1
vote
0 answers

conda-build doesn't install requirements

I am trying to built a simple conda package with one dependency (snakemake) using conda-build command. My meta.yaml file is: package: name: Foo version: "0.0.1" source: git_url: requirements: …
user44697
  • 313
  • 4
  • 11
1
vote
2 answers

Adding requirements to "run" or "host" fails conda-build

I'm using conda-build to build a conda package from python source code, and I'm getting the following error whenever I add something to the "run" or "host" subsections of the "requirements" section in meta.yaml: Tests failed for…
OronNavon
  • 1,293
  • 8
  • 18
1
vote
1 answer

conda install in test environment

I try to create my own (first) conda package, spent the recent evenings tabbing between google, stack-overflow and my terminal. I am stuck on the following: I can successfully build from my project (named mcm) directory with conda build .. After…
Dr. V
  • 1,747
  • 1
  • 11
  • 14
1
vote
1 answer

How to set environment variables in a conda package so they are set when an environment containing that package is activated?

I know I can create an env_vars.(bat|sh) inside the activate.d directory in an environment, however I want the variables to be included as part of a package, so if the package is swapped out to a different version, it will change the environment…
Chad Vernon
  • 593
  • 4
  • 12
1
vote
0 answers

Copy link library files for conda build

I am trying to prepare a conda build for a package and the package depends on samtools libraries. The user needs to copy the library files into the package directory for compilation. Here is the installation instruction of the package. ln -s…
Arijit Panda
  • 1,581
  • 2
  • 17
  • 36