Skip to content

CONDA_BUILD_CROSS_COMPILATION is always defined and set to 1 for noarch: python builds, while it is not defined in conda-build #1784

@traversaro

Description

@traversaro

I am not sure if this is an actually build as I am not sure what is the proper definition of CONDA_BUILD_CROSS_COMPILATION , but while migrating a non-trivial recipe, I noticed that rattler-build always defines the CONDA_BUILD_CROSS_COMPILATION to 1 in noarch: python builds, while conda-build does not define it.

Reproducer available at https://gist.github.com/traversaro/7bc2f2cc45c6dd48ba953cf2669bfc4b (courtesy of Claude 4):

git clone https://gist.github.com/traversaro/7bc2f2cc45c6dd48ba953cf2669bfc4b repr1784
cd repr1784
# Success (CONDA_BUILD_CROSS_COMPILATION  is not defined)
pixi run reproduce-conda-build
# Failure (CONDA_BUILD_CROSS_COMPILATION is defined to 1)
pixi run reproduce-rattler-build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions