summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/wrap-python.nix
AgeCommit message (Collapse)Author
2025-04-01treewide: Format all Nix filesSilvan Mosberger
Format all Nix files using the officially approved formatter, making the CI check introduced in the previous commit succeed: nix-build ci -A fmt.check This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153) of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166). This commit will lead to merge conflicts for a number of PRs, up to an estimated ~1100 (~33%) among the PRs with activity in the past 2 months, but that should be lower than what it would be without the previous [partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537). Merge conflicts caused by this commit can now automatically be resolved while rebasing using the [auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase). If you run into any problems regarding any of this, please reach out to the [formatting team](https://nixos.org/community/teams/formatting/) by pinging @NixOS/nix-formatting.
2023-11-05treewide: change pythonForBuild to pythonOnBuildForHostAdam Joseph
2023-02-07treewide: makeSetupHook deps -> propagatedBuildInputsArtturin
2023-02-07makeSetupHook: support depsTargetTargetPropagatedArtturin
2023-01-27Merge branch 'master' into staging-nextVladimír Čunát
2023-01-26treewide: remove global with lib; statements in pkgs/developmentShawn8901
2023-01-19treewide: add names to all setup hooksAlyssa Ross
2022-10-27pythonPackages: ensure all derivations provide python modulesFrederik Rietdijk
This adds a test to ensure no new uses of `buildPythonApplication` can be added to `python-packages.nix`. Python packages can be grouped into two groups: 1) applications and 2) packages providing importable modules. In `python-packages.nix` we only want to have 2). 1) should be in the top-level package set. To achieve this, all setup hooks need to be marked as being a setup hook. For the setup hooks in the Python packages set this is done by creating a new builder, `makePythonHook`. Because there were issues with splicing, the file importing all the hooks is converted to an extension. All non-packages were moved out of `python-packages.nix` into `python-packages-base.nix`. The `keep` argument to `makeScopeWithSplicing was cleaned up as well; there is no need to keep this one manually in sync reducing the risk of breaking cross-compilation.
2019-01-04Python: improve cross-compilationFrederik Rietdijk
This changeset allows for cross-compilation of Python packages. Packages built with buildPythonPackage are not allowed to refer to the build machine. Executables that have shebangs will refer to the host.
2018-12-20wrap-python: fix pypy site-packages pathJörg Thalheim
2017-01-02Python: script names now include full pathFrederik Rietdijk
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
2016-09-01Python: move wrapPython into own fileFrederik Rietdijk