Skip to content

Commit

Permalink
overrides: fix pyside6
Browse files Browse the repository at this point in the history
Clean the `__pycache__` folder to avoid collisions between `pyside6`, `pyside6-addons`, and `pyside6-essentials`.

Related to: #1808
  • Loading branch information
JoanCoCo committed Dec 30, 2024
1 parent 1fb01e9 commit def16ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2949,6 +2949,9 @@ lib.composeManyExtensions [
pkgs.xorg.libxshmfence
pkgs.xorg.libxkbfile
];
postInstall = ''
rm -r $out/${final.python.sitePackages}/PySide6/__pycache__/
'';
});
pyside6 = prev.pyside6.overridePythonAttrs (_old: {
# The PySide6/__init__.py script tries to find the Qt libraries
Expand All @@ -2963,6 +2966,7 @@ lib.composeManyExtensions [
postFixup = ''
${pkgs.xorg.lndir}/bin/lndir ${final.pyside6-essentials}/${final.python.sitePackages}/PySide6 $out/${final.python.sitePackages}/PySide6
${pkgs.xorg.lndir}/bin/lndir ${final.pyside6-addons}/${final.python.sitePackages}/PySide6 $out/${final.python.sitePackages}/PySide6
rm -r $out/${final.python.sitePackages}/PySide6/__pycache__/
'';
});

Expand Down

0 comments on commit def16ba

Please sign in to comment.