Skip to content

Commit

Permalink
python3Packages.tensorflow: use __structuredAttrs = true
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamrockLee committed Dec 22, 2024
1 parent e7b6887 commit d19e36e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@

- `python3Packages.conda` now uses `__structuredAttrs = true`.

- `python3Packages.tensorflow` now uses `__structuredAttrs = true`.

- `python3Packages.jaeger-client` was removed because it was deprecated upstream. [OpenTelemetry](https://opentelemetry.io) is the recommended replacement.

- `nodePackages.meshcommander` has been removed, as the package was deprecated by Intel.
Expand Down
6 changes: 5 additions & 1 deletion pkgs/development/python-modules/tensorflow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ let
};
in
buildPythonPackage {
__structuredAttrs = true;
inherit version pname;
disabled = pythonAtLeast "3.12";

Expand Down Expand Up @@ -639,7 +640,10 @@ buildPythonPackage {
rm $out/bin/tensorboard
'';

setupPyGlobalFlags = [ "--project_name ${pname}" ];
setupPyGlobalFlags = [
"--project_name"
pname
];

# tensorflow/tools/pip_package/setup.py
propagatedBuildInputs = [
Expand Down

0 comments on commit d19e36e

Please sign in to comment.