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
25
votes
1 answer

Possible to do "conda build" from github branch?

I know that I can tell conda to build from github as: source: fn: v1.6.0.tar.gz url: https://github.com/SciTools/iris/archive/v1.6.0.tar.gz md5: 24c2d55758325a8f05aadf99748c0d2a or source: git_url: git@github.com:SciTools/iris.git …
Rich Signell
  • 14,842
  • 4
  • 49
  • 77
14
votes
1 answer

conda-build of official AnacondaRecipes/opencv-feedstock fails looking for libpng.h

I have downloaded the official conda recipe of opencv in AnacondaRecipes. I have tried to build this package executing: conda-build recipe -c conda-forge I am getting the following error when the recipe compiles opencv, when doing [ 72%] Built…
jruizaranguren
  • 12,679
  • 7
  • 55
  • 73
11
votes
3 answers

Configure conda build to exclude some folders from the conda package output

tl;dr: How do you exclude folders from being packaged by conda build ? Context I am building my first packages with conda build. My meta.yaml file looks like this: package: name: 'some_name' version: {{ load_setup_py_data().get('version')…
godot
  • 1,550
  • 16
  • 33
11
votes
0 answers

Packaging with manylinux + auditwheel pip wheels vs. Conda

Description So I am looking to package a fairly complex python application that requires scientific libraries. This question is somewhat similar to the stackoverflow pip vs conda discussion but it does not go into detail about the differences now…
costrouc
  • 3,045
  • 2
  • 19
  • 23
9
votes
1 answer

How to make conda-build work correctly and find the setup.py?

I am trying to create an anaconda python package. My meta.yaml looks like this: package: name: liveprint-lib version: "0.1.0" build: number: 0 requirements: build: - pip - python=3.7 - setuptools run: - python=3.7 -…
monomonedula
  • 606
  • 4
  • 17
9
votes
1 answer

Conda build unsatisfiable dependencies error with pint

I have a valid pip package that I am trying to put onto the Anaconda.org server. I created the meta.yaml file with conda skeleton, which includes the requirement for pint (no particular version selected, so it should default to the latest.) However,…
Ethan Keller
  • 963
  • 3
  • 10
  • 26
8
votes
1 answer

Conda glibc dependency conflict

I get a weird error when I try to build a conda package. $ conda-build pkg2 .... Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed .... The following specifications were found to be…
Evgeny Tanhilevich
  • 1,119
  • 1
  • 8
  • 17
8
votes
1 answer

How do I install pip packages through a conda-build recipe?

I am trying to make a conda package out of a data pipeline. The idea is to distribute the package locally through our department for quick deployment. Our pipeline uses 2 packages that are not available for Windows in common conda channels:…
8
votes
0 answers

How can I get the path for the conda package after conda build

I am trying to automatize conda build process within a makefile. I build a conda package with the following command. conda build . --output-folder dist/conda A file foo-1.0.0-0.tar.bz2 is created under dist/conda/linux-64. Next, I want to do some…
hrzafer
  • 1,123
  • 1
  • 15
  • 35
6
votes
1 answer

How to fix error when building conda package related to "Icon" file?

I honestly can't figure out what is happening with this error. I thought it was something in my manifest file but apparently it's not. Note, this directory is in my Google Drive. Here is my MANIFEST.in file: graft soothsayer_utils include…
O.rka
  • 29,847
  • 68
  • 194
  • 309
6
votes
1 answer

What does it mean to install a conda package in development mode?

I was looking around Conda's documentation and I found this: https://docs.conda.io/projects/conda-build/en/latest/resources/commands/conda-develop.html?highlight=develop It explains how to install a package in development mode but it doesn't seem…
mylox
  • 71
  • 1
  • 5
5
votes
1 answer

How to eliminate spurious warnings, re: JSON cache files, from conda when using new libmamba solver?

Since upgrading to the new libmamba solver, I'm getting these spurious warnings when I conda build ...: warning libmamba Could not parse state file: Could not load cache state: [json.exception.type_error.302] type must be string, but is…
dbanas
  • 1,707
  • 14
  • 24
5
votes
1 answer

Cross-compilation fails during `help` installation: "installing Rd objects failed"

Installation self-loads library during help step I've encountered an issue when cross-compiling the R package xml2 on the Conda Forge infrastructure (r-xml2-feedstock). The Conda Forge *nix builds for R execute with: R CMD INSTALL --no-test-load…
merv
  • 67,214
  • 13
  • 180
  • 245
5
votes
2 answers

How can I make a Python package developed with Poetry available on conda-forge (or even on my personal conda channel)?

I have developed my first Python package using Poetry as a dependency management and packaging tool. Publishing my work to PyPI has been as easy as running: poetry publish --build Now, I'd like to make my package available in the conda ecosystem…
Luigi
  • 81
  • 3
5
votes
1 answer

How to install local package with conda

I have a local python project called jive that I would like to use in an another project. My current method of using jive in other projects is to activate the conda env for the project, then move to my jive directory and use python setup.py install.…
thomaskeefe
  • 1,900
  • 18
  • 19
1
2 3
10 11