mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 03:07:53 +00:00
python3.pkgs.scipy: set HOME to a writeable directory
Seems to be required for aarch64-darwin, but doesn't hurt any other platform to have this.
This commit is contained in:
parent
01e53f7065
commit
d61583bbc8
@ -113,7 +113,7 @@ in buildPythonPackage {
|
||||
# library where these files are cached. See also:
|
||||
# https://github.com/scipy/scipy/pull/18518#issuecomment-1562350648 And at:
|
||||
# https://github.com/scipy/scipy/pull/17965#issuecomment-1560759962
|
||||
export XDG_CACHE_HOME=$PWD; mkdir scipy-data
|
||||
export XDG_CACHE_HOME=$PWD; export HOME=$(mktemp -d); mkdir scipy-data
|
||||
'' + (lib.concatStringsSep "\n" (lib.mapAttrsToList (d: dpath:
|
||||
# Actually copy the datasets
|
||||
"cp ${dpath} scipy-data/${d}.dat"
|
||||
|
Loading…
Reference in New Issue
Block a user