Skip to content

Removing = pins as hinted breaks grpc recipe #2262

@h-vetinari

Description

@h-vetinari

The = pins in

  - name: grpcio-tools
    [..]
    requirements:
      build:
        - python                                 # [build_platform != target_platform]
        - cython                                 # [build_platform != target_platform]
        - cross-python_{{ target_platform }}     # [build_platform != target_platform]
        - {{ stdlib('c') }}
        - {{ compiler('c') }}
        - {{ compiler('cxx') }}
      host:
        - grpcio ={{ version }}=*_{{ PKG_BUILDNUM }}
        - python
        - cython
        - pip
        - setuptools
      run:
        - grpcio ={{ version }}=*_{{ PKG_BUILDNUM }}
        - python
        - protobuf
        - setuptools

cause the following linter warning (original formatting, which seems broken too)

  • In section host: `grpcio =1.68.2=*_PKG_BUILDNUM

  • In section run: grpcio =1.68.2=*_PKG_BUILDNUM Requirements spec fields should always be space-separated to avoid known issues in conda-build. For example, instead of name =version=build, use name version build`.

However, actually removing the pins breaks the build as follows (logs)

conda_build.exceptions.RecipeError: Mismatching hashes in recipe. Exact pins in dependencies that contribute to the hash often cause this. Can you change one or more exact pins to version bound constraints?
Involved packages were:
Mismatching package: grpcio (id py313h1474e93_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py313h1474e93_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py310h56e06c5_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py310h56e06c5_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py39hd7d1cbf_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py39hd7d1cbf_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py311h9789449_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py311h9789449_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py312hacea422_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools
Mismatching package: grpcio (id py312hacea422_0); dep: grpcio 1.68.2 *_0; consumer package: grpcio-tools

CC @jaimergp @beckermr

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