mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #156808 from samuela/samuela/fix-jaxlib
JAX ecosystem: `jaxlib` should never be in `propagatedBuildInputs`
This commit is contained in:
commit
d8ff1576ae
7 changed files with 17 additions and 5 deletions
|
@ -4,6 +4,7 @@
|
||||||
, dill
|
, dill
|
||||||
, dm-tree
|
, dm-tree
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, jaxlib
|
||||||
, jmp
|
, jmp
|
||||||
, lib
|
, lib
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -31,6 +32,7 @@ buildPythonPackage rec {
|
||||||
chex
|
chex
|
||||||
cloudpickle
|
cloudpickle
|
||||||
dm-tree
|
dm-tree
|
||||||
|
jaxlib
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
tensorflow
|
tensorflow
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
, deepmerge
|
, deepmerge
|
||||||
, dm-haiku
|
, dm-haiku
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, jaxlib
|
||||||
, lib
|
, lib
|
||||||
, poetry
|
, poetry
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -35,6 +36,8 @@ buildPythonPackage rec {
|
||||||
poetry
|
poetry
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [ jaxlib ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cloudpickle
|
cloudpickle
|
||||||
deepdish
|
deepdish
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, jaxlib
|
||||||
, keras
|
, keras
|
||||||
, lib
|
, lib
|
||||||
, matplotlib
|
, matplotlib
|
||||||
|
@ -21,6 +22,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "0zvq0vl88hiwmss49bnm7gdmndr1dfza2bcs1fj88a9r7w9dmlsr";
|
sha256 = "0zvq0vl88hiwmss49bnm7gdmndr1dfza2bcs1fj88a9r7w9dmlsr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ jaxlib ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
matplotlib
|
matplotlib
|
||||||
msgpack
|
msgpack
|
||||||
|
|
|
@ -19,10 +19,9 @@ buildPythonPackage rec {
|
||||||
sha256 = "0hh4cmp93wjyidj48gh07vhx2kjvpwd23xvy79bsjn5qaaf6q4cm";
|
sha256 = "0hh4cmp93wjyidj48gh07vhx2kjvpwd23xvy79bsjn5qaaf6q4cm";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Wheel requires only `numpy`, but the import needs both `jax` and `jaxlib`.
|
# Wheel requires only `numpy`, but the import needs `jax`.
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jax
|
jax
|
||||||
jaxlib
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
@ -30,6 +29,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
jaxlib
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,11 @@ buildPythonPackage rec {
|
||||||
sha256 = "1q8cxc42a5xais2ll1l238cnn3l7w28savhgiz0lg01ilz2ysbli";
|
sha256 = "1q8cxc42a5xais2ll1l238cnn3l7w28savhgiz0lg01ilz2ysbli";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ jaxlib ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
absl-py
|
absl-py
|
||||||
chex
|
chex
|
||||||
jaxlib
|
|
||||||
numpy
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,12 @@ buildPythonPackage rec {
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
# These deps are not needed for the wheel, but required during the import.
|
# jax is not declared in the dependencies, but is necessary.
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jax
|
jax
|
||||||
jaxlib
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ jaxlib ];
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"treeo"
|
"treeo"
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, flax
|
, flax
|
||||||
, hypothesis
|
, hypothesis
|
||||||
|
, jaxlib
|
||||||
, keras
|
, keras
|
||||||
, lib
|
, lib
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
@ -38,6 +39,8 @@ buildPythonPackage rec {
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [ jaxlib ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
einops
|
einops
|
||||||
flax
|
flax
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue