python: stop using package parameters to control build options #356058
Labels
0.kind: enhancement
Add something new
6.topic: python
9.needs: package (update)
This needs a package to be updated
Issue description
The python package currently uses non-standard parameters to control build options. However, a number of these have actually become standard nix environment variables that should be looked up at build time. Specifically:
nixpkgs/pkgs/development/interpreters/python/cpython/default.nix
Lines 75 to 76 in cea28c8
NIX_ENFORCE_PURITY
nixpkgs/pkgs/development/interpreters/python/cpython/default.nix
Lines 65 to 67 in cea28c8
NIX_ENFORCE_NO_NATIVE
Additionally:
nixpkgs/pkgs/development/interpreters/python/cpython/default.nix
Lines 69 to 70 in cea28c8
nixpkgs/pkgs/development/interpreters/python/cpython/default.nix
Lines 72 to 73 in cea28c8
let
, as I can't see a good reason to want to manually disable it.nixpkgs/pkgs/development/interpreters/python/cpython/default.nix
Line 60 in cea28c8
finalAttrs.stdenv.hostPlatform.isStatic
Notify maintainers
@mweinelt @natsukium
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: