Branch: refs/heads/staging
Home: https://github.com/NixOS/nixpkgs
Commit: d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a
https://github.com/NixOS/nixpkgs/commit/d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a
Author: Frederik Rietdijk <[email protected]>
Date: 2017-01-02 (Mon, 02 Jan 2017)
Changed paths:
M pkgs/development/interpreters/python/wrap-python.nix
Log Message:
-----------
Python: script names now include full path
Certain programs, like zim, calibre and now also apparently mercurial,
rely on sys.argv[0] providing not just the script name but the full
path.
The Python docs [1] state the following on the matter:
> argv[0] is the script name (it is operating system dependent whether
this is a full pathname or not).
Therefore, scripts should not expect to receive a full path.
Unfortunately some do. While this can be considered a bug, there doesn't
seem any reason not to provide the full path. Therefore we now provide
the full path.
[1]
https://docs.python.org/3.5/library/sys.html?highlight=sys.argv#sys.argv
Commit: 21f6cb79a7082e36d3a6374ea5b25a1645875f78
https://github.com/NixOS/nixpkgs/commit/21f6cb79a7082e36d3a6374ea5b25a1645875f78
Author: Frederik Rietdijk <[email protected]>
Date: 2017-01-02 (Mon, 02 Jan 2017)
Changed paths:
M pkgs/applications/office/zim/default.nix
Log Message:
-----------
zim: remove postFixup, include checkPhase, disable tests
- wrap-python.nix used to set sys.argv[0] to the name of the script, but
it now sets the path so we won't have to do it here anymore
- tests were not found, so the correct file is now invoked
Compare: https://github.com/NixOS/nixpkgs/compare/5a67b130b9b4...21f6cb79a708_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits