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

Exclude a specific Python version in conda-build recipe

I have a private Python package I build with conda-build which depends on pywinauto. This package has some issues with Python 3.7.6 which is documented here: https://github.com/pywinauto/pywinauto/issues/868. The issue seems to be fixed with Python…
m-rossi
  • 11
  • 1
1
vote
1 answer

`conda build gcc-5` Fails on Mac OS Mojave

Using conda, I can not seem to build gcc-5 (or any gcc-X version) recipe on MacOS Mojave: System pre-reqs Install Xcode Command Line Tools Install headers package…
1
vote
1 answer

Building conda package: The package must be rebuilt with conda-build > 2.0

I am running into a problem with conda packaging. I use someone's recipe to build a python binding to a C++ library, libvips. When I run a build (within a fresh docker image) I am getting following error: Build prefix failed with prefix length…
Dima Lituiev
  • 12,544
  • 10
  • 41
  • 58
1
vote
0 answers

conda build fails with `>=` of jinja2 variable in `host` section of recipe

I am using a jinja2 variable in the recipe file of a feedstock, but conda build fails to recognize that variable in the host part of the requirements section when used along with >=. This problem does not happen in the run section of recipe. Also,…
sangeek
  • 11
  • 4
1
vote
0 answers

conda build R package fails due to C compiler

I'm trying to install an R package called rcdd using conda build and there is a problem with the C compiler. Note that this problem looks very similar to Conda build R package fails at C compiler issue on MacOS Mojave however as (i) that question…
pjet
  • 11
  • 1
1
vote
1 answer

conda-forge recipe for python package with a fortran extension not working on appveyor

I am trying to get a conda-build recipe to pass all the CI tests on conda-forge/staged-recipes. Here is a link to the pull request The python package has a fortran extension and uses numpy.distutils in the setup.py to build the extension. Circle CI…
jentjr
  • 352
  • 2
  • 9
1
vote
0 answers

python packages and imports, import error from module

I am packaging a python package using conda-build and ran into some issues. I am probably missing something fundamental and would appreciate if you could point me in the right direction. The package looks like |foo |meta.yaml |build.sh …
Moritz
  • 5,130
  • 10
  • 40
  • 81
1
vote
2 answers

conda build source from local archive file

conda build supports a variety of methods for importing source to be used in the build, as outlined here. Is there a way to import source from a local archive file (.zip,.tar.gz, etc.)? I have attempted to specify the location of the archive file…
mcguip
  • 5,947
  • 5
  • 25
  • 32
1
vote
1 answer

conda build fails for CRAN R packages

I am trying to build a R conda package that doesn't exist on conda-forge from a CRAN package using the appraoch shown here: https://www.anaconda.com/blog/developer-blog/conda-data-science/ I used the R package rann as an example - this package…
eega
  • 479
  • 8
  • 20
1
vote
1 answer

Build conda package upon installation

So I have published a conda package (link). This package contains .c extensions (coming from cython code), which need to be compiled when the package is installed. My problem is that none of the extensions are compiled when running the install…
Niourf
  • 450
  • 1
  • 4
  • 15
1
vote
0 answers

conda build does not test python imports

I am building a python conda package using the meta.yaml below. As far as I understand it should instruct conda build to install the package in a test env and test the listed imports. However conda build just return with "Nothing to test for:…
Per Voie
  • 11
  • 1
1
vote
1 answer

Conda build and cython problems

I am trying to create a conda package to distribute a python tool. Part of the tool is cythonized, and it works perfectly using python setup.py install. I create the tar properly but when I try to install it, the package does not contain the .py…
jvaquero
  • 75
  • 8
1
vote
2 answers

conda build R packages to different library location

I'm following the instructions from https://www.continuum.io/content/conda-data-science in order to build a CRAN-available R package (e.g. synthpop). conda skeleton cran synthpop conda build r-synthpop How can I change the default conda build…
Delia
  • 11
  • 3
1
vote
1 answer

Making compiled packages using conda build

I'm trying to get some R packages compiled using conda build for upload to anaconda.org, but they just end up containing the recipe. I feel like I may be missing an option for conda build or something. For the sake of this example, say I download…
Jesse Anderson
  • 4,507
  • 26
  • 36
1
vote
1 answer

Import test failed when using Conda Build

I am trying to create my own Conda package, but I'm having a problem when I go to "Build" the package, specifically within the "Testing" phase. I have been following the tutorial linked below, and it's been very helpful in explaining what each part…
CurtLH
  • 2,329
  • 4
  • 41
  • 64