summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/wrap-python.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* treewide: Format all Nix files•••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. Silvan Mosberger2025-04-011-38/+53
* treewide: change pythonForBuild to pythonOnBuildForHostAdam Joseph2023-11-051-1/+1
* treewide: makeSetupHook deps -> propagatedBuildInputsArtturin2023-02-071-1/+1
* makeSetupHook: support depsTargetTargetPropagatedArtturin2023-02-071-1/+1
* Merge branch 'master' into staging-nextVladimír Čunát2023-01-271-5/+3
|\
| * treewide: remove global with lib; statements in pkgs/developmentShawn89012023-01-261-5/+3
* | treewide: add names to all setup hooksAlyssa Ross2023-01-191-0/+1
|/
* pythonPackages: ensure all derivations provide python modules•••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. Frederik Rietdijk2022-10-271-2/+2
* Python: improve cross-compilation•••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. Frederik Rietdijk2019-01-041-1/+2
* wrap-python: fix pypy site-packages pathJörg Thalheim2018-12-201-1/+1
* 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 Frederik Rietdijk2017-01-021-1/+1
* Python: move wrapPython into own fileFrederik Rietdijk2016-09-011-0/+51