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
vtk_9: init at 9.0.1 #95450
vtk_9: init at 9.0.1 #95450
Conversation
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.
I would probably make this three commits:
vtk_8: pin at 8.2.0
vtk: 8.2.0 -> 9.0.1
python3Packages.vtk: init at 9.0.1
What do you think about keeping the python3Packages.vtk using VTK7? Or you think it's better to add a python3Packages.vtk_7? |
Other problem is that some packages depending on VTK only work with the version 8, not with the version 9. I need to update those packages. See:
|
We try to only have 1 version of a package for a given interpreter. This avoid situations where a number of packages bring in many version of a given package. But at runtime, python will import only one. So some packages will be implicitly broken by the introduction of many versions. I would select which ever one is most commonly used. Then bump when relevant
I probably would not bump the |
Ok, @jonringer, I created 2 commits:
VTK continues to be VTK8 and I created VTK_9. Just Mayavi is failing to build: $ nix build --no-link --keep-going --option build-use-sandbox relaxed -f /home/thiago/.cache/nixpkgs-review/pr-95450-1/build.nix
builder for '/nix/store/20g91b052l2240ybrgmmpajp5rgf1jz6-python3.7-mayavi-4.7.1.drv' failed with exit code 139; last 10 log lines:
default: (invalid), range: None
vtkArrayNorm: Ignoring method: Get/SetWindow
default: [0, 9223372036854775807), range: None
vtkChart: Ignoring method: Get/SetSize
default: [0.0, 0.0, 0.0, 0.0], range: None
vtkChartXYZ: Ignoring method: Get/SetAxisColor
default: [0, 0, 0, 255], range: None
Warning: We cannot determine the trait type of vtkHigherOrderHexahedron.Order
Warning: We cannot determine the trait type of vtkHigherOrderQuadrilateral.Order
/nix/store/221cd4xfzwhw46dbjw38q6zrcxw1phdp-setuptools-setup-hook/nix-support/setup-hook: line 17: 23 Segmentation fault (core dumped) /nix/store/9hdzs3g6rb76grwzlsbxyxwxg2n0fl4a-python3-3.7.8/bin/python3.7 nix_run_setup bdist_wheel
builder for '/nix/store/d3wsd58yf6drwiflqjwpbi6pwqhkqll5-python3.8-mayavi-4.7.1.drv' failed with exit code 139; last 10 log lines:
default: (invalid), range: None
vtkArrayNorm: Ignoring method: Get/SetWindow
default: [0, 9223372036854775807), range: None
vtkChart: Ignoring method: Get/SetSize
default: [0.0, 0.0, 0.0, 0.0], range: None
vtkChartXYZ: Ignoring method: Get/SetAxisColor
default: [0, 0, 0, 255], range: None
Warning: We cannot determine the trait type of vtkHigherOrderHexahedron.Order
Warning: We cannot determine the trait type of vtkHigherOrderQuadrilateral.Order
/nix/store/0vlj6iv2735hxwssc15q2yrsirxfjcy1-setuptools-setup-hook/nix-support/setup-hook: line 17: 23 Segmentation fault (core dumped) /nix/store/fjgnz0xfl04hsblsi4ym5y5akfh6mlmy-python3-3.8.5/bin/python3.8 nix_run_setup bdist_wheel
cannot build derivation '/nix/store/ik9crw8hwqdmxw43nilh6qblyzgz2j4h-env.drv': 2 dependencies couldn't be built
[0 built (2 failed), 13 copied (39.8 MiB), 12.6 MiB DL]
error: build of '/nix/store/ik9crw8hwqdmxw43nilh6qblyzgz2j4h-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/95450
2 packages failed to build:
python37Packages.mayavi python38Packages.mayavi
3 packages built:
python37Packages.vtk python38Packages.vtk vtk_9 |
Edit by @mweinelt: Added backticks to get a codeblock. |
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.
LGTM
shows usage
https://github.com/NixOS/nixpkgs/pull/95450
1 package built:
vtk_9
sorry @tfmoraes that took a while, but it's not a simple package :( EDIT: forgot to say not |
This also adds VTK9. It makes VTK9 the default. Adds VTK_8.
Motivation for this change
Add VTK9 and its Python bindings into NixOS.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)