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
0
votes
0 answers

Passing version environment variable from build time to runtime in Conda package

The version of my package is defined as an envrionment variable (VERSION). This environment variable is read by setup.py which passes it to meta.yaml. This is the version with which my package builds. When my package is run as package --version,…
Gaurang Tandon
  • 6,504
  • 11
  • 47
  • 84
0
votes
0 answers

How to manually run tests run by conda-build?

The "recipe" for conda-build may specify to run a test. The basic test imports the package just built. This test fails for me, but when I try to run it manually, everything works fine... In my meta.yaml: test: imports: - foo This is how build…
wvxvw
  • 8,089
  • 10
  • 32
  • 61
0
votes
1 answer

Conda fails to build, when inside docker container

I am trying to build a docker image. This is the full dockerfile: FROM ubuntu ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 ENV PATH /opt/conda/bin:$PATH ENV TZ=Europe/Athens RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN…
user1584421
  • 3,499
  • 11
  • 46
  • 86
0
votes
0 answers

No files or script found for output

I am playing around with building python packages with conda and cannot figure out how it works. I tried to build a package from a github source and my meta.yaml looks like this {% set version = "0.5.0" %} package: name: bsdiff4 version: {{…
Greenfish
  • 358
  • 2
  • 5
  • 19
0
votes
0 answers

What does "conda install package_name" actually do?

I tried to build and install a simple python package using conda-build and conda install and read many documentions on the internet such as the…
Greenfish
  • 358
  • 2
  • 5
  • 19
0
votes
1 answer

Why is $CONDA_PREFIX set to $BUILD_PREFIX during the build process of conda-build?

I have following build.sh and want to install my python package by simply copying the $RECIPE_DIR to $CONDA_PREFIX/... #!/bin/sh # Variables # package_name="filip_test_package" dir_in_conda=$CONDA_PREFIX/lib/python3.8/site-packages/$PKG_NAME #…
Greenfish
  • 358
  • 2
  • 5
  • 19
0
votes
1 answer

When building conda packages using conda-build and my code uses pure python libraries, what do I need to put in build/host/run in the meta.yaml file?

Let's say I have a python package that uses pandas, numpy and matplotlib. If I look at their meta.yaml files, I see a lot of dependencies in the requirements section. E.g. compilers like make. Do I need to name all those dependencies from the build…
Greenfish
  • 358
  • 2
  • 5
  • 19
0
votes
0 answers

How to build conda recipes based on arguments passed with the `conda build` command

I would like to have a single recipe to build all my individual python packages in my repository. (There are multiple ones here.) This is how the repo is structured: repo |--package1 |--setup.py |--package2 |--setup.py |--package3 …
0
votes
1 answer

Set build number for conda metadata inside Azure pipeline

I am using the bash script to build the conda pakage in azure pipeline conda build . --output-folder $(Build.ArtifactStagingDirectory) And here is the issue, Conda build uses the build number in the meta.yml file(see here). A solution of What I…
SLN
  • 4,772
  • 2
  • 38
  • 79
0
votes
2 answers

Using conda build to build win32 and win64 packages in 1 go

My pure python scripts are 32 bits or 64 bits agnostic but my dependencies are not. I want to use cython to speed up some functions making the package not pure python. And I want to use them on windows with python 32 bits or 64 bits. Is there a way…
dj K
  • 180
  • 2
  • 11
0
votes
0 answers

How to run import tests when using a recipe? (not with bdist_conda)

I'm using conda-build to build a python package using a recipe (i.e. a meta.yaml file). I would like conda-build to automatically discover and run import tests on all the modules in the package, just as it does when using bdist_conda (see…
OronNavon
  • 1,293
  • 8
  • 18
0
votes
0 answers

Package dependencies error during conda-build upload

I'm trying to upload pycaret package into anaconda, making it possible to install with conda install pycaret. This is issue 21 and I'm working on it. So, I followed those steps at Building conda packages with conda skeleton and create the meta.yaml…
Henrique Branco
  • 1,778
  • 1
  • 13
  • 40
0
votes
1 answer

conda build: Access error on just-created directory

I'm trying to build a conda package with conda build .. I'm getting quite far, but after the tests, I get this output: Renaming work directory, C:\ProgramData\Miniconda3\envs\p37\conda-bld\_1596716574942\work to …
Jann Poppinga
  • 444
  • 4
  • 18
0
votes
1 answer

Conda Build fails packaging C++ project

I'm trying to create a recipe for the library here: https://github.com/hyrise/sql-parser I'm building for OSX 10.13. My build.sh looks like this: #!/bin/bash make VERBOSE=1 make DESTDIR="$PREFIX" install I've also set up my SDK as per here:…
clery00
  • 251
  • 2
  • 14
0
votes
0 answers

How do I "build with the CLI option" with conda-build?

I am new to Python, the Anaconda environment, conda, pip, all of it, so please bear with me if these are simple questions. I've asked a couple previous questions about this install which so far have been resolved. Here was my previous question. All…
Randy Poe
  • 1
  • 2
1 2 3
10
11