-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
python312Packages.plotly: cleanup, enable checks on darwin #347763
base: master
Are you sure you want to change the base?
Conversation
@@ -66,7 +65,7 @@ buildPythonPackage rec { | |||
ipython | |||
ipywidgets | |||
which | |||
orca | |||
# orca # unable to locate binary, is this the right package? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place orca
and psutil
in optional-dependencies
per https://plotly.com/python/getting-started/#orca
Then take them out of the check inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add kaleido
to the check inputs and disable kaleido tests on Darwin (as they try to launch it as a subprocess). See my recommended changes on the previous PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI The reason orca isn't working as a check input here is one of its dependencies isn't building on Darwin (libaio, which is Linux-specific.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice finding that orca is legacy!
optional-dependencies
is supposed to mirror the optional deps defined in the package manifest, which I can't see plotly doing that neither in the code nor in the produced METADATA file.
kaleido is already in dependencies
and thus need not also be added to check inputs
]; | ||
disabledTestPaths = [ | ||
# unable to locate orca binary | ||
"plotly/tests/test_orca/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
"test_dependencies_not_imported" | ||
"test_lazy_imports" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fail because the correct libraries aren't available at check time. Put only the pytestCheckHook
in nativeCheckInputs
and the rest (save for optional dependencies) into checkInputs
. That will fix these tests.
From the stdenv
documentation:
Dependencies needed only to run tests are similarly classified between native (executed during build) and non-native (executed at runtime):
nativeCheckInputs
for test tools needed on $PATH (such as ctest) and setup hooks (for example pytestCheckHook)
checkInputs
for libraries linked into test executables (for example the qcheck OCaml package)
These dependencies are only injected when doCheck is set to true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried it, doesn't fix the lazy loading tests. python checkInputs are imported on the build architecture and will thus break cross
|
3568a4a
to
2160479
Compare
2160479
to
6da24bc
Compare
this are fixes i made for #347567, but i did not push it due to the eval backlog
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.