Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kicad: pin to python 3.11 #325726

Merged
merged 1 commit into from
Jul 17, 2024
Merged

kicad: pin to python 3.11 #325726

merged 1 commit into from
Jul 17, 2024

Conversation

StarGate01
Copy link
Member

Description of changes

Similar to #325682 , this PR pins the Python version used by kicad to Python 3.11.

KiCAD depends on wxWidgets, which still uses distutils (removed in Python 3.12), see also wxWidgets/Phoenix#2104 .

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (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.

@StarGate01 StarGate01 requested review from jfly and evils July 9, 2024 03:59
Copy link
Contributor

@jfly jfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Pinning to python 3.11 sounds like the right thing to do.

A couple of notes:

  1. Your PR description is great, but the commit message is too terse.
  2. I like to write this so there's a single place where we're switching from python3 to python311. Idea: add a python3 = python311in the let block at the too of this file. Also a a quick code comment linking to the upstream issue you mentioned: Replace distutils with setuptools wxWidgets/Phoenix#2104

@StarGate01
Copy link
Member Author

@jfly Thank you for your suggestions, I have implemented them.

Copy link
Contributor

@jfly jfly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@StarGate01 StarGate01 mentioned this pull request Jul 10, 2024
13 tasks
@evils evils mentioned this pull request Jul 10, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Jul 10, 2024
Copy link
Member

@evils evils left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT
KiCad builds and runs, kicad-unstable build seems to be going well

i prefer this PR for its precedence, explanatory comment and clearer commit title

evils

This comment was marked as duplicate.

@Noodlez1232
Copy link
Contributor

I also prefer this commit. I'll go ahead and close mine. Great work!

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Jul 11, 2024
@Ace-h121
Copy link

Is there any fix for the time being before this gets merged?

@wentasah
Copy link
Contributor

You can use kicad from nixos-24.05. For example this way. Or just run nix run nixpkgs/nixos-24.05#kicad-small (if you have flakes enabled).

@Ace-h121
Copy link

@wentasah sadly I dont have flakes setup, thank your for your help though!

@bjornfor
Copy link
Contributor

@wentasah sadly I dont have flakes setup, thank your for your help though!

Non-Flakes equivalent would be nix-build -A kicad-small channel:nixos-24.05 && ./result/bin/kicad. (Or nix-env -iA kicad-small -f channel:nixos-24.05 for installing to user profile.)

KiCAD depends on wxWidgets, which still uses distutils (removed in Python 3.12)
@SuperSandro2000
Copy link
Member

I would have merged this immediately after a friend made me aware of the kicad build issue but since it doesn't eval, I first pushed a fix for that.

@SuperSandro2000
Copy link
Member

@ofborg eval

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jul 17, 2024
@ofborg ofborg bot requested a review from evils July 17, 2024 21:49
@SuperSandro2000 SuperSandro2000 merged commit b75c0dc into NixOS:master Jul 17, 2024
27 of 29 checks passed
@StarGate01 StarGate01 deleted the fix-kicad branch February 6, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 12.approvals: 2 This PR was reviewed and approved by two reputable people
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants