Skip to content

Comments

python3.pkgs.detectron2: fix build#251151

Merged
fabaff merged 1 commit intoNixOS:masterfrom
benxiao:rx/detectron-fix-build
Aug 24, 2023
Merged

python3.pkgs.detectron2: fix build#251151
fabaff merged 1 commit intoNixOS:masterfrom
benxiao:rx/detectron-fix-build

Conversation

@benxiao
Copy link
Contributor

@benxiao benxiao commented Aug 24, 2023

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Aug 24, 2023
@benxiao benxiao requested a review from happysalada August 24, 2023 11:47
@benxiao benxiao force-pushed the rx/detectron-fix-build branch from 1dcb055 to cb2a99a Compare August 24, 2023 11:54
@benxiao benxiao self-assigned this Aug 24, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Aug 24, 2023
@benxiao benxiao changed the title Rx/detectron fix build python3.pkgs.detectron2: fix build Aug 24, 2023
@natsukium
Copy link
Member

@ofborg build python310Packages.detectron2

@fabaff
Copy link
Member

fabaff commented Aug 24, 2023

Result of nixpkgs-review pr 251151 run on x86_64-linux 1

8 packages built:
  • python310Packages.detectron2
  • python310Packages.detectron2.dist
  • python310Packages.unstructured-inference
  • python310Packages.unstructured-inference.dist
  • python311Packages.detectron2
  • python311Packages.detectron2.dist
  • python311Packages.unstructured-inference
  • python311Packages.unstructured-inference.dist

Copy link
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

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

Change looks good to me.

@fabaff fabaff merged commit f908cc8 into NixOS:master Aug 24, 2023
@happysalada
Copy link
Contributor

I just checked and the build is working on linux-x86_64 without this change.
@benxiao could you elaborate a little more on what was failing ?
Did you maybe try to fix another platform than linux ?

@benxiao
Copy link
Contributor Author

benxiao commented Aug 24, 2023

@happysalada the building of c extension is failing to due to missing pybind11. in torch derivation, USE_BIND11 is recently changed to USE_PYBIND11. and the comment above the change said it prevents pybind11 from leaking. so from now on , detectron2 need to explicitly add pybind11 to your buildinputs. instead of using pybind11 implicitly came from torch. I believe that's for all platforms.

@benxiao benxiao mentioned this pull request Aug 25, 2023
12 tasks
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: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants