← Back to Pull requests

Add pict #35894

Open
bollwyvl opened this pull request with 112 lines diff across 2 files
View on GitHub
bollwyvl bollwyvl commented on Nov 29, 2026 16:13 UTC
Author

Checklist

  • Title of this PR is meaningful: e.g. "Adding my_nifty_package", not "updated recipe".

  • Recipe uses the v1 recipe.yaml format, or this PR explains the exceptional requirement for deprecated v0.

  • License file is packaged (see the v1 example recipe for an example).

  • Source is from official source.

  • Package does not vendor other packages. (If a package uses the source of another package, they should be separate packages or the licenses of all packages need to be packaged).

  • If static libraries are linked in, the license of the static library is packaged.

  • Package does not ship static libraries. If static libraries are needed, follow CFEP-18.

  • Build number is 0.

  • A tarball (url) rather than a repo (e.g. git_url) is used in your recipe (see here for more details).

  • GitHub users listed in the maintainer section have posted a comment confirming they are willing to be listed there.

  • When in trouble, please check our knowledge base documentation before pinging a team.
  • References:

  • noted when adding tests on https://github.com/conda-forge/robotframework-datadriver-feedstock/pull/13
  • Diff: 112 lines (+112 / -0) across 2 files Reviewer: traversaro Review duration: 10089m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.33) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 112 lines diff across 2 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.283
    Real PR Conversation Timeline
    10 items
    conda-forge-admin conda-forge-admin commented on Nov 29, 2026 16:15 UTC
    Contributor

    Hi! This is the friendly automated conda-forge-linting service.

    I wanted to let you know that I linted all conda-recipes in your PR (``recipes/pict/recipe.yaml`) and found some lint.

    Here's what I've got...

    For recipes/pict/recipe.yaml:

    ❌ The recipe must have a build/number section.

    For recipes/pict/recipe.yaml:

    ℹ️ Jinja2 variable references are suggested to take a ${{<one space><variable name><one space>}}` form. See lines [4].

    <sub>This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/46282785475. Examine the logs at this URL for more detail.</sub>

    conda-forge-admin conda-forge-admin commented on Nov 29, 2026 16:16 UTC
    Contributor

    Hi! This is the friendly automated conda-forge-linting service.

    I just wanted to let you know that I linted all conda-recipes in your PR (``recipes/pict/recipe.yaml``) and found it was in an excellent condition.

    bollwyvl bollwyvl commented on Nov 30, 2026 14:44 UTC
    Author

    @conda-forge/help-c-cpp ready for review

    traversaro traversaro commented on code on Dec 03, 2026 16:59 UTC
    Code Review
    recipes/pict/recipe.yaml:1
    @@ -0,0 +1,98 @@
    +# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
    +context:
    +  version: "3.7.4"
    +  ev: ${{ "${V}" if unix else "%V%" }}
    +
    +recipe:
    +  name: pict-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/microsoft/pict/archive/refs/tags/v${{ version }}.tar.gz
    +  sha256: 42af3ac7948d5dfed66525c4b6a58464dfd8f78a370b1fc03a8d35be2179928f
    +  patches:
    +    - if: osx
    +      then:
    +        - 0000-osx-cflags.patch
    +
    +build:
    +  number: 0
    +
    +outputs:
    +  - package:
    +      name: pict
    +    build:
    +      script:
    +        - if: win
    +          then:
    +            - set "CXXFLAGS=%CXXFLAGS% /EHsc"
    +        - cmake
    +            -B build
    +            -D BUILD_SHARED_LIBS=ON
    +            -D CMAKE_BUILD_TYPE=Release
    +            -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON
    +            -D CMAKE_CXX_COMPILER=${{ ev | replace("V", "CXX") }}
    +            -D CMAKE_CXX_FLAGS="${{ ev | replace("V", "CXXFLAGS") }}"
    +            -D CMAKE_INSTALL_PREFIX="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -D CMAKE_PREFIX_PATH="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -G Ninja
    +            -S .
    +        - cmake --build build --target install
    +        - if: unix
    +          then:
    +            - mkdir -p "${PREFIX}/lib"
    +            - cp build/clidll/libpict${SHLIB_EXT} "${PREFIX}/lib/"
    +          else:
    +            - md "%LIBRARY_LIB%"
    +            - copy "build\clidll\pict.dll" "%LIBRARY_LIB%"
    +    requirements:
    +      build:
    +        - ${{ compiler("c") }}
    +        - ${{ compiler("cxx") }}
    +        - ${{ stdlib("c") }}
    +        - cmake
    +        - ninja
    +    tests:
    +      - package_contents:
    +          strict: true
    +          files:
    +            - etc/conda/test-files/pict/**
    +            - if: unix
    +              then:
    +                - bin/pict
    +                - lib/libpict${{ SHLIB_EXT }}
    +                - share/doc/PICT/**
    +              else:
    +                - Library/bin/pict.exe
    +                - Library/lib/pict.dll
    +                - Library/share/doc/PICT/**
    +      - files:
    +          source:
    +            - test/**
    +        requirements:
    +          run:
    +            - perl
    +        script:
    +          - cd test
    +          - perl test.pl "${{ '${PREFIX}/bin/' if unix else '%LIBRARY_BIN%\\' }}pict" test.log

    Are you sure that this command returns the correct return value on failures?

    traversaro traversaro commented on code on Dec 03, 2026 17:00 UTC
    Code Review
    recipes/pict/recipe.yaml:1
    @@ -0,0 +1,98 @@
    +# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
    +context:
    +  version: "3.7.4"
    +  ev: ${{ "${V}" if unix else "%V%" }}
    +
    +recipe:
    +  name: pict-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/microsoft/pict/archive/refs/tags/v${{ version }}.tar.gz
    +  sha256: 42af3ac7948d5dfed66525c4b6a58464dfd8f78a370b1fc03a8d35be2179928f
    +  patches:
    +    - if: osx
    +      then:
    +        - 0000-osx-cflags.patch
    +
    +build:
    +  number: 0
    +
    +outputs:
    +  - package:
    +      name: pict
    +    build:
    +      script:
    +        - if: win
    +          then:
    +            - set "CXXFLAGS=%CXXFLAGS% /EHsc"
    +        - cmake
    +            -B build
    +            -D BUILD_SHARED_LIBS=ON
    +            -D CMAKE_BUILD_TYPE=Release
    +            -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON
    +            -D CMAKE_CXX_COMPILER=${{ ev | replace("V", "CXX") }}
    +            -D CMAKE_CXX_FLAGS="${{ ev | replace("V", "CXXFLAGS") }}"
    +            -D CMAKE_INSTALL_PREFIX="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -D CMAKE_PREFIX_PATH="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -G Ninja
    +            -S .
    +        - cmake --build build --target install
    +        - if: unix
    +          then:
    +            - mkdir -p "${PREFIX}/lib"
    +            - cp build/clidll/libpict${SHLIB_EXT} "${PREFIX}/lib/"
    +          else:
    +            - md "%LIBRARY_LIB%"
    +            - copy "build\clidll\pict.dll" "%LIBRARY_LIB%"
    +    requirements:
    +      build:
    +        - ${{ compiler("c") }}
    +        - ${{ compiler("cxx") }}
    +        - ${{ stdlib("c") }}
    +        - cmake
    +        - ninja
    +    tests:
    +      - package_contents:
    +          strict: true
    +          files:
    +            - etc/conda/test-files/pict/**
    +            - if: unix
    +              then:
    +                - bin/pict
    +                - lib/libpict${{ SHLIB_EXT }}
    +                - share/doc/PICT/**
    +              else:
    +                - Library/bin/pict.exe
    +                - Library/lib/pict.dll
    +                - Library/share/doc/PICT/**
    +      - files:
    +          source:
    +            - test/**
    +        requirements:
    +          run:
    +            - perl
    +        script:

    could it make sense to add a smoke test that runs the executable, at least to check if launches fine?

    traversaro traversaro commented on code on Dec 03, 2026 17:02 UTC
    Code Review
    recipes/pict/recipe.yaml:1
    @@ -0,0 +1,98 @@
    +# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
    +context:
    +  version: "3.7.4"
    +  ev: ${{ "${V}" if unix else "%V%" }}
    +
    +recipe:
    +  name: pict-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/microsoft/pict/archive/refs/tags/v${{ version }}.tar.gz
    +  sha256: 42af3ac7948d5dfed66525c4b6a58464dfd8f78a370b1fc03a8d35be2179928f
    +  patches:
    +    - if: osx
    +      then:
    +        - 0000-osx-cflags.patch
    +
    +build:
    +  number: 0
    +
    +outputs:
    +  - package:
    +      name: pict
    +    build:
    +      script:
    +        - if: win
    +          then:
    +            - set "CXXFLAGS=%CXXFLAGS% /EHsc"
    +        - cmake
    +            -B build
    +            -D BUILD_SHARED_LIBS=ON
    +            -D CMAKE_BUILD_TYPE=Release
    +            -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON
    +            -D CMAKE_CXX_COMPILER=${{ ev | replace("V", "CXX") }}

    I am confused by all this, should't all this env variables already loaded by CMake automatically? Also, can you please use %CMAKE_ARGS% and $CMAKE_ARGS ? Also, is there any reason to avoid a good old build.bat and build.sh ?

    bollwyvl bollwyvl commented on code on Dec 04, 2026 15:26 UTC
    Code Review
    recipes/pict/recipe.yaml:1
    @@ -0,0 +1,98 @@
    +# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
    +context:
    +  version: "3.7.4"
    +  ev: ${{ "${V}" if unix else "%V%" }}
    +
    +recipe:
    +  name: pict-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/microsoft/pict/archive/refs/tags/v${{ version }}.tar.gz
    +  sha256: 42af3ac7948d5dfed66525c4b6a58464dfd8f78a370b1fc03a8d35be2179928f
    +  patches:
    +    - if: osx
    +      then:
    +        - 0000-osx-cflags.patch
    +
    +build:
    +  number: 0
    +
    +outputs:
    +  - package:
    +      name: pict
    +    build:
    +      script:
    +        - if: win
    +          then:
    +            - set "CXXFLAGS=%CXXFLAGS% /EHsc"
    +        - cmake
    +            -B build
    +            -D BUILD_SHARED_LIBS=ON
    +            -D CMAKE_BUILD_TYPE=Release
    +            -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON
    +            -D CMAKE_CXX_COMPILER=${{ ev | replace("V", "CXX") }}
    +            -D CMAKE_CXX_FLAGS="${{ ev | replace("V", "CXXFLAGS") }}"
    +            -D CMAKE_INSTALL_PREFIX="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -D CMAKE_PREFIX_PATH="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -G Ninja
    +            -S .
    +        - cmake --build build --target install
    +        - if: unix
    +          then:
    +            - mkdir -p "${PREFIX}/lib"
    +            - cp build/clidll/libpict${SHLIB_EXT} "${PREFIX}/lib/"
    +          else:
    +            - md "%LIBRARY_LIB%"
    +            - copy "build\clidll\pict.dll" "%LIBRARY_LIB%"
    +    requirements:
    +      build:
    +        - ${{ compiler("c") }}
    +        - ${{ compiler("cxx") }}
    +        - ${{ stdlib("c") }}
    +        - cmake
    +        - ninja
    +    tests:
    +      - package_contents:
    +          strict: true
    +          files:
    +            - etc/conda/test-files/pict/**
    +            - if: unix
    +              then:
    +                - bin/pict
    +                - lib/libpict${{ SHLIB_EXT }}
    +                - share/doc/PICT/**
    +              else:
    +                - Library/bin/pict.exe
    +                - Library/lib/pict.dll
    +                - Library/share/doc/PICT/**
    +      - files:
    +          source:
    +            - test/**
    +        requirements:
    +          run:
    +            - perl
    +        script:
    +          - cd test
    +          - perl test.pl "${{ '${PREFIX}/bin/' if unix else '%LIBRARY_BIN%\\' }}pict" test.log

    No, not really!

    bollwyvl bollwyvl commented on code on Dec 04, 2026 15:27 UTC
    Code Review
    recipes/pict/recipe.yaml:1
    @@ -0,0 +1,98 @@
    +# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
    +context:
    +  version: "3.7.4"
    +  ev: ${{ "${V}" if unix else "%V%" }}
    +
    +recipe:
    +  name: pict-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/microsoft/pict/archive/refs/tags/v${{ version }}.tar.gz
    +  sha256: 42af3ac7948d5dfed66525c4b6a58464dfd8f78a370b1fc03a8d35be2179928f
    +  patches:
    +    - if: osx
    +      then:
    +        - 0000-osx-cflags.patch
    +
    +build:
    +  number: 0
    +
    +outputs:
    +  - package:
    +      name: pict
    +    build:
    +      script:
    +        - if: win
    +          then:
    +            - set "CXXFLAGS=%CXXFLAGS% /EHsc"
    +        - cmake
    +            -B build
    +            -D BUILD_SHARED_LIBS=ON
    +            -D CMAKE_BUILD_TYPE=Release
    +            -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON
    +            -D CMAKE_CXX_COMPILER=${{ ev | replace("V", "CXX") }}
    +            -D CMAKE_CXX_FLAGS="${{ ev | replace("V", "CXXFLAGS") }}"
    +            -D CMAKE_INSTALL_PREFIX="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -D CMAKE_PREFIX_PATH="${{ ev | replace("V", "PREFIX" if unix else "LIBRARY_PREFIX") }}"
    +            -G Ninja
    +            -S .
    +        - cmake --build build --target install
    +        - if: unix
    +          then:
    +            - mkdir -p "${PREFIX}/lib"
    +            - cp build/clidll/libpict${SHLIB_EXT} "${PREFIX}/lib/"
    +          else:
    +            - md "%LIBRARY_LIB%"
    +            - copy "build\clidll\pict.dll" "%LIBRARY_LIB%"
    +    requirements:
    +      build:
    +        - ${{ compiler("c") }}
    +        - ${{ compiler("cxx") }}
    +        - ${{ stdlib("c") }}
    +        - cmake
    +        - ninja
    +    tests:
    +      - package_contents:
    +          strict: true
    +          files:
    +            - etc/conda/test-files/pict/**
    +            - if: unix
    +              then:
    +                - bin/pict
    +                - lib/libpict${{ SHLIB_EXT }}
    +                - share/doc/PICT/**
    +              else:
    +                - Library/bin/pict.exe
    +                - Library/lib/pict.dll
    +                - Library/share/doc/PICT/**
    +      - files:
    +          source:
    +            - test/**
    +        requirements:
    +          run:
    +            - perl
    +        script:

    sure, sounds good. it's a very bare-bones CLI, and has no --help or --version, but we luckily have all the examples lying around...

    bollwyvl bollwyvl commented on code on Dec 04, 2026 15:30 UTC
    Code Review
    recipes/pict/recipe.yaml:1
    @@ -0,0 +1,98 @@
    +# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
    +context:
    +  version: "3.7.4"
    +  ev: ${{ "${V}" if unix else "%V%" }}
    +
    +recipe:
    +  name: pict-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/microsoft/pict/archive/refs/tags/v${{ version }}.tar.gz
    +  sha256: 42af3ac7948d5dfed66525c4b6a58464dfd8f78a370b1fc03a8d35be2179928f
    +  patches:
    +    - if: osx
    +      then:
    +        - 0000-osx-cflags.patch
    +
    +build:
    +  number: 0
    +
    +outputs:
    +  - package:
    +      name: pict
    +    build:
    +      script:
    +        - if: win
    +          then:
    +            - set "CXXFLAGS=%CXXFLAGS% /EHsc"
    +        - cmake
    +            -B build
    +            -D BUILD_SHARED_LIBS=ON
    +            -D CMAKE_BUILD_TYPE=Release
    +            -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON
    +            -D CMAKE_CXX_COMPILER=${{ ev | replace("V", "CXX") }}

    That's what I would have thought, but took a lotta shameful trial-by-CI to get to :heavy_check_mark: based on cargo-culting stuff from lots of other quirky, but working, feedstocks.

    Will try .sh|bat. But some stuff (like the OSX flags what needed patching) are buried very deep, and this code hasn't been updated in several years... and cmake vs msvc isn't even documented upstream :crying_cat_face:

    Reviewers
    Assignees
    bollwyvl bollwyvl
    Labels
    risk: low confidence: 90.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 32.7% (LOW) · Higher = larger blast radius
    32.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 90.8% · Lower = rushed or shallow review
    90.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3% · Safe to merge
    3%