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

How to copy license from host package

When compiling software that makes use of a header-only library, licensing can require a copy of the library's license to be distributed with the compiled software. Moreover, Conda Forge is explicit (see PR template) that packages must include the…
merv
  • 67,214
  • 13
  • 180
  • 245
5
votes
1 answer

Python Packaging: Creating a dependency on a `conda-forge` package in `conda` `meta.yaml` file

I am writing a package for conda-forge and needed to specify a dependency on another conda-forge dependency. Essentially, I need to install a pinned version of the conda-forge gdal package, because it actually compiles the version of libtiff that…
krishnab
  • 9,270
  • 12
  • 66
  • 123
4
votes
0 answers

Creating conda packages for non-python scripts

I read recently that conda is in fact a general purpose package manager, not specific to python. conda installs packages which may contain software written in any language Source: Anaconda blog However all meta.yaml examples I could find always…
4
votes
1 answer

How to include pip-only package when building conda package by using conda-build?

I would like to build a Conda package for my project. However, there is one package that is on pip-only (not uploaded to Conda channel). How to include pip only package when using conda-build command? I tried using Conda skeleton to build a package…
asiandudeCom
  • 441
  • 1
  • 5
  • 26
4
votes
0 answers

Error while building a conda package for pypolymake

I'm using miniconda on Windows 10 (see Edit 2 below for the output of conda info). I would like to use the PyPI package pypolymake. Therefore, I tried to follow the instructions given here to build a conda package using conda skeleton. Before I…
Chris
  • 41
  • 4
4
votes
1 answer

How do I fix conda UnsatisfiableError of my custom conda package?

I'm trying to package my python code to publish in on Anaconda cloud. The folder structure looks like this: . ├── conda-recipe │   ├── build.bat │   ├── build.sh │   └── meta.yaml ├── demos │   ├── datasets │   │   ├──…
monomonedula
  • 606
  • 4
  • 17
4
votes
1 answer

Minimal working example for conda package build

I am trying to look into conda for python package/virtual environments management. However, I can't seem to be able to build my own conda package. Could somebody help me to construct a minimal working example? First of all some directory…
Chris
  • 899
  • 2
  • 17
  • 25
3
votes
0 answers

Single sourcing package dependencies with conda build, develop and pip

I am writing a Python package, for which I provide packaging via setuptools as well as a recipe for conda build. This allows the package to be installed via pip and conda. Additionally, I want to provide an easy way to setup a conda environment for…
tierriminator
  • 587
  • 5
  • 19
3
votes
0 answers

TeamCity anaconda error: Unsatisfiable dependencies for platform win-64

I am trying to build (conda-build) and test (pytest) my python project with help of anaconda and TeamCity. TeamCity is working fine for Linux, but for Windows I have an error on the testing build step (Linux and Windows use the same meta.yaml…
mascai
  • 1,373
  • 1
  • 9
  • 30
3
votes
2 answers

Doing a conda-build does not find any files

I am trying to build a simple package for upload to anaconda cloud. I have gone a long way to get a small example working, but I am unable to use a package built by conda on the target machine (always giving me a ModuleNotFound-Error). However, I…
Christian
  • 303
  • 2
  • 15
3
votes
1 answer

conda-build and dependency resolution

I have a conda based project, which has a few dependencies declared in meta.yaml. These dependencies of course have their own dependencies, which aren't listed in my meta.yaml. As a result, building my project with conda build sometimes results in…
zoran119
  • 10,657
  • 12
  • 46
  • 88
3
votes
1 answer

Using conda to build and install local or custom R package

I would like to install a local R package into a conda environment. The package is not on CRAN or github (and not on any conda channel). For packages on CRAN this is relatively straightforward: conda skeleton cran conda-build r- conda…
fry
  • 509
  • 3
  • 10
3
votes
1 answer

What is the difference between conda-forge and cf-staging channels

I have a package that I maintain in PyPi that I also placed on conda-forge for those who prefer to install with conda rather than pip. In the past, when I would update the version and SHA in the feedstock it would automatically feed the new version…
Daniel Goldfarb
  • 6,937
  • 5
  • 29
  • 61
3
votes
0 answers

Conda build creates empty package

I am using conda-build version 3.11.0 and conda 4.9.2 and python 3.6.5. I am running conda build . on our project, only to see the following output: WARNING:conda_build.build:No files or script found for output ourtool WARNING…
AKS
  • 79
  • 8
3
votes
0 answers

templating in conda package for name of package or entrypoint not working

To build a conda package the meta.yaml file is required which lists i.e. the name of the package, version and entry point and specifies how to build the package. Also, it supports jinja2-based templating for most parts of the yaml file. How can I…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
2
3
10 11