Skip to content

python312Packages.fs: clean-up#349608

Merged
fabaff merged 1 commit intoNixOS:stagingfrom
fabaff:fs-refactor
Dec 9, 2024
Merged

python312Packages.fs: clean-up#349608
fabaff merged 1 commit intoNixOS:stagingfrom
fabaff:fs-refactor

Conversation

@fabaff
Copy link
Member

@fabaff fabaff commented Oct 18, 2024

  • enable tests

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.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Oct 18, 2024
@fabaff fabaff mentioned this pull request Oct 18, 2024
21 tasks
@fabaff fabaff force-pushed the fs-refactor branch 2 times, most recently from 2747b2d to 06e9c24 Compare October 18, 2024 19:39
@ofborg ofborg bot requested a review from lovek323 October 18, 2024 22:48
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Oct 18, 2024
@Pandapip1 Pandapip1 mentioned this pull request Oct 23, 2024
13 tasks
@Pandapip1
Copy link
Member

Pandapip1 commented Oct 24, 2024

This should probably target staging or staging-next

@fabaff fabaff marked this pull request as draft October 24, 2024 19:48
@fabaff fabaff changed the base branch from master to staging October 24, 2024 19:49
@fabaff fabaff marked this pull request as ready for review October 24, 2024 20:37
@FliegendeWurst
Copy link
Member

FliegendeWurst commented Nov 12, 2024

@ofborg build python312Packages.fs

damn it, LLVM is not cached yet..

Copy link
Member

@Pandapip1 Pandapip1 left a comment

Choose a reason for hiding this comment

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

Diff LGTM; borgy is happy

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 14, 2024
@fabaff fabaff merged commit 6f53c4f into NixOS:staging Dec 9, 2024
@fabaff fabaff deleted the fs-refactor branch December 9, 2024 08:38
six
appdirs
pytz
setuptools
Copy link
Contributor

Choose a reason for hiding this comment

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

This change breaks some downstream packages; for example attempting to build nomnatong on current master (9e09ce2) results in

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/6kb205kz8m53bbgcs1xz5890zj4b6bad-source
source root is source/src
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Traceback (most recent call last):
  File "/nix/store/csrwfkw01nys8knp67xhxhdg1n11jlwc-python3.12-afdko-4.0.1/bin/.makeotf-wrapped", line 6, in <module>
    from afdko.makeotf import main
  File "/nix/store/csrwfkw01nys8knp67xhxhdg1n11jlwc-python3.12-afdko-4.0.1/lib/python3.12/site-packages/afdko/makeotf.py", line 13, in <module>
    from afdko import convertfonttocid, fdkutils, ufotools
  File "/nix/store/csrwfkw01nys8knp67xhxhdg1n11jlwc-python3.12-afdko-4.0.1/lib/python3.12/site-packages/afdko/ufotools.py", line 13, in <module>
    from fontTools.ufoLib import UFOReader
  File "/nix/store/1pjjzg67xrnk5m6b053k23c0n0m3s03k-python3.12-fonttools-4.54.1/lib/python3.12/site-packages/fontTools/ufoLib/__init__.py", line 42, in <module>
    import fs
  File "/nix/store/xbk7nbi14ihmnjxdzphjxpifs3104j3d-python3.12-fs-2.4.16/lib/python3.12/site-packages/fs/__init__.py", line 4, in <module>
    __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pkg_resources'

Copy link
Member

Choose a reason for hiding this comment

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

That's a bug with those packages. build-system = [ setuptools ]; should be added to those packages.

Copy link
Contributor

@eclairevoyant eclairevoyant Dec 28, 2024

Choose a reason for hiding this comment

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

The stacktrace literally points to this package... the __init__.py is attempting to access a nonexistent module

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough. I'll submit a patch.

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. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants