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

Conda install failed after using package from conda-build

I am trying to install a conda package I created using GitHub actions, but when trying to install the package on the remote system I want, I am getting a strange error. I am not sure what is missing in the either the yaml file for the GH Action, or…
krolic
  • 51
  • 2
0
votes
0 answers

conda build works but not conda install : conflicts in environment

I am trying to build a python package for a python library with a C++ back-end : https://gitlab.com/cytosim/cytosim/-/tree/pybind I managed to have a working package for pip that compiles and installs well, provided the adequate libraries are…
SergeD
  • 44
  • 9
0
votes
0 answers

Building conda package with C++ extensions fails to find headers

I am building locally a conda package. I have reduced its structure to the MWE below: . ├── build.sh ├── cythonwrap.pyx ├── pythonmodule.py ├── lib │   ├── function.cpp │   └── header.h ├── meta.yml └── setup.py function.cpp requires shared…
0
votes
0 answers

Where is conda.pth?

As I understand it, conda develop \path\to\project adds a path to a file called conda.pth which stores all the paths accessible to python. I would like to find this file so I can check which paths I have added to it. Where can I find this file? I…
Wilson
  • 399
  • 2
  • 10
0
votes
1 answer

mamba installs package into wrong site-packages directory

I have a problem like so: I am in a conda environment that has mamba installed (let's call the environment mamba_env). I now want to use mamba to install a (self-built) package some_package into another conda environment called some_env. The python…
chriss
  • 53
  • 7
0
votes
1 answer

Why is conda not installing a dist-info for my main installation target, but is for all its dependencies?

I'm building/installing a package: foo, using conda, which has several dependencies: bar and blatz, which I'm also building/installing with conda. They all build without error. When I conda install foo, foo and all its dependencies get installed…
dbanas
  • 1,707
  • 14
  • 24
0
votes
2 answers

How to add custom C++ compiler flags to a conda-build flow?

How do I inject my own desired C++ compiler flags into a conda-build flow? I tried this, in my conda_build_config.yaml file: cxx_compiler: - gxx # [linux] - clangxx -Wno-c++11-narrowing # [osx] - vs2019 …
dbanas
  • 1,707
  • 14
  • 24
0
votes
1 answer

Which conda-build CDT package provides the `X11/X.h` file?

I've got this requirements:build section in my meta.yaml file: requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ cdt('libx11-devel') }} # [linux] - cmake - git - swig - xorg-xproto #…
dbanas
  • 1,707
  • 14
  • 24
0
votes
1 answer

Why is VS14 getting invoked when I list vs2019_win-64 as a build: requirement?

I have the following in my meta.yaml file: requirements: build: - vs2019_win-64 # Uncomment for Windows build only. {snip} But, when I peruse my (failed) build results I see that VS14 was being invoked: dbanas@Dell-XPS-15 MINGW64…
dbanas
  • 1,707
  • 14
  • 24
0
votes
0 answers

how to activate conda environment in x64 native tools command prompt vs 2019

i need to do a "make pythonAPI" command inside a conda environment, inside the x64 native tools command prompt vs 2019, for setting up the DReyeVR program. link to issue on git: https://github.com/HARPLab/DReyeVR/issues/89 Im a student so my…
0
votes
0 answers

Why is conda-build falsely reporting that numpy is not a build requirement?

In response to this command: conda build --python=3.9 --numpy=1.23 -c dbanas -c defaults -c conda-forge conda.recipe/pyibis-ami/ I'm getting the following error: ValueError: numpy x.x specified, but numpy not in build requirements. Here's my…
dbanas
  • 1,707
  • 14
  • 24
0
votes
0 answers

build conda package on platform with no dependencies for a platform with dependencies

I have a package written on pure python which does not require any platform specific build procedures. However, one of run dependencies is available only for linux-64 platform. I surely understand that I am not able to run my package on win-64…
Leonid Lunin
  • 54
  • 1
  • 7
0
votes
0 answers

Docker : Anaconda error : HTTP 000 CONNECTION FAILED error in WINDOWS

I am building an existing code base (python fast api) in docker (in windows). Docker-compose throws an error. I use corporate laptop with zscaler. It looks like repodata.json is ~240Mb, this is not getting downloaded or failed inside the container…
Lakshmanan
  • 101
  • 3
0
votes
0 answers

How is this Conda dependency conflict possible?

I have a conflict while attempting a conda build: Package python_abi conflicts for: pyibis-ami[version='>=4.0.5'] -> click -> python_abi[version='3.10.*|3.8.*|3.11.*',build='*_cp311|*_cp310|*_cp38'] {snip} pyibis-ami[version='>=4.0.5'] ->…
dbanas
  • 1,707
  • 14
  • 24
0
votes
0 answers

Why is cython expressing different Python requirements in the same build?

In trying to build Chaco using the following conda command: conda build --python=3.9 --numpy=1.23 --use-local -c dbanas -c defaults -c conda-forge conda.recipe/chaco/ and the following meta.yaml file: {% set name = "chaco" %} {% set version =…
dbanas
  • 1,707
  • 14
  • 24