Skip to content

pythonInterpreters.pypy310_prebuilt: set mainProgram#412881

Merged
FliegendeWurst merged 1 commit intoNixOS:masterfrom
trofi:pythonInterpreters.pypy310_prebuilt-set-mainProgram
Jun 1, 2025
Merged

pythonInterpreters.pypy310_prebuilt: set mainProgram#412881
FliegendeWurst merged 1 commit intoNixOS:masterfrom
trofi:pythonInterpreters.pypy310_prebuilt-set-mainProgram

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Jun 1, 2025

Without the change the eval fails as:

$ nix build --no-link -f. pythonInterpreters.pypy310_prebuilt.tests.test-packageOverrides
error:
   … in the condition of the assert statement
     at pkgs/development/interpreters/python/tests.nix:212:11:
      211|           in
      212|           assert myPython.pkgs.foobar == myPython.pkgs.numpy;
         |           ^
      213|           myPython.withPackages (ps: with ps; [ foobar ]);

   … while evaluating the attribute 'outPath'
     at lib/customisation.nix:421:7:
      420|         drv.drvPath;
      421|       outPath =
         |       ^
      422|         assert condition;

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: attribute 'mainProgram' missing
   at pkgs/by-name/me/meson/package.nix:75:52:
       74|           --replace-fail "PythonExternalProgram('python3', mesonlib.python_command)" \
       75|                          "PythonExternalProgram('${python3.meta.mainProgram}', mesonlib.python_command)"
         |                                                    ^
       76|         substituteInPlace mesonbuild/modules/python3.py \

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Without the change the eval fails as:

    $ nix build --no-link -f. pythonInterpreters.pypy310_prebuilt.tests.test-packageOverrides
    error:
       … in the condition of the assert statement
         at pkgs/development/interpreters/python/tests.nix:212:11:
          211|           in
          212|           assert myPython.pkgs.foobar == myPython.pkgs.numpy;
             |           ^
          213|           myPython.withPackages (ps: with ps; [ foobar ]);

       … while evaluating the attribute 'outPath'
         at lib/customisation.nix:421:7:
          420|         drv.drvPath;
          421|       outPath =
             |       ^
          422|         assert condition;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'mainProgram' missing
       at pkgs/by-name/me/meson/package.nix:75:52:
           74|           --replace-fail "PythonExternalProgram('python3', mesonlib.python_command)" \
           75|                          "PythonExternalProgram('${python3.meta.mainProgram}', mesonlib.python_command)"
             |                                                    ^
           76|         substituteInPlace mesonbuild/modules/python3.py \
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jun 1, 2025
@nix-owners nix-owners bot requested review from mweinelt and natsukium June 1, 2025 09:08
@trofi trofi mentioned this pull request Jun 1, 2025
8 tasks
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 1, 2025
@FliegendeWurst FliegendeWurst merged commit 7844f0b into NixOS:master Jun 1, 2025
18 of 21 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 1, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 1, 2025
@trofi trofi deleted the pythonInterpreters.pypy310_prebuilt-set-mainProgram branch June 1, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants