summary refs log tree commit diff
path: root/doc/languages-frameworks/python.section.md
Commit message (Collapse)AuthorAge
* docs: python39 is availableFrederik Rietdijk2020-10-13
|
* doc/python: remove trailing whitespacezowoq2020-09-21
|
* doc/python: Add pythonImportsCheck mentionJonathan Ringer2020-08-17
|
* doc/python: add pytestCheckHook sectionJonathan Ringer2020-08-17
|
* docs: update python interpreter versionsJonathan Ringer2020-08-12
|
* doc: `pip install` flags are specified with `pipInstallFlags`Daniël de Kok2020-06-16
| | | | | The documentation incorrectly stated that `installFlags` are passed to `pip install`.
* python3: now points to python38Frederik Rietdijk2020-06-04
| | | | | | Note this also means python3Minimal is now also Python 3.8. This reverts commit eb1369670b5a4e616ff0cf4100616479b1fa3064 and adds more.
* python3Packages.venvShellHook: add postVenvCreation (#87850)Jon2020-05-16
| | | | | * python3Packages.venvShellHook: add postVenvCreation * python: docs: add postVenvCreation explaination
* doc: Rewrite python onboarding tutorials in manualBenjamin Hipple2020-05-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on some feedback in #87094 and discussion with @fridh, this re-organizes the onboarding tutorial in the Nixpkgs manual's python section, so that we start with the simplest, most ad-hoc examples and work our way up. This progresses from: 1. How to create an temporary python env at the cmdline, then 2. How to create a specific python env for a single script, then 3. How to create a specific python env for a project in a shell.nix, then 4. How to install a specific python env globally on the system or in a user profile. Additionally, I've tried to standardize on some of the "best practice" ways of doing things: 1. Instead of saying that this command style is "supported but strongly not discouraged", I've just deleted it to avoid confusion. Bad: nix-shell -p python38Packages.numpy python38Packages.toolz Good: nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz ])' 2. In the portion where we show how to add stuff to the user's `XDG_CONFIG_HOME`, use overlays instead of `config.nix`. The former can do everything the latter can do, but is also much more generic and powerful, because it can compose with other files, compose with other envs, compose with overlays that do things like swap whether tensorflow and pytorch are built openblas/mkl/cuda stacks, and so on. The user is eventually going to see the overlay, so to avoid confusion let's standardize on it.
* doc: use idiomatic overlay names in the python manual exampleBenjamin Hipple2020-05-09
| | | | | An overlay by any other name would function just as well, but we generally use `self: super:` for the regular overlays, and `python-self: python-super`.
* doc: update python manual to reference python 3.8 instead of 3.5Benjamin Hipple2020-05-09
| | | | Improvement suggested in #87094
* Revert "docs/python: document builders using doInstallCheck and not doCheck ↵Frederik Rietdijk2020-04-26
| | | | | | | | | | | (#86051)" For disabling tests when overriding, use `.overridePythonAttrs`. Discussion about aliasing `.overridePythonAttrs` to `.overrideAttrs`. https://github.com/NixOS/nixpkgs/pull/82772 This reverts commit 35812875a4455e2636eb24ddaf702faa4767fafa.
* docs/python: document builders using doInstallCheck and not doCheck (#86051)Doron Behar2020-04-26
|
* doc/overlays.xml: update documentation for BLAS/LAPACKMatthew Bauer2020-04-21
| | | | This expands the documentation and explains how to assert LP64.
* treewide: per RFC45, remove more unquoted URLsPavol Rusnak2020-04-18
|
* manual: use quoted homepage urlsJonathan Ringer2020-02-16
|
* doc: consistent formatting on python manual sectionBenjamin Hipple2020-02-09
| | | | | | | | | | No material changes to docs, but trying to sanitize them for consistent readability prior to looking at #75837. - Use `*` for lists instead of `-`. I have no opinion one way or the other, but the latter was only used in 1-2 places. - Pad the code blocks with whitespace. - Wrap to 80 characters, except for a few 1-liners that were only slightly over.
* doc: python: fixing mistake in venv exampleDima2020-02-02
| | | | | | | | | | When updating the section to python 3 some places still referred to pythonPackages and were overlooked. Decided to switch it to be more similar to the first example binding pythonPackages and clarified comments a bit based on confusion I observed on IRC. Related to https://github.com/NixOS/nixpkgs/pull/77569
* doc: python: refreshing virtualenv section for venvDima2020-01-20
| | | | | | | | | | | Updating section about imperative use of ad-hoc virtual-environments for use of pythons built-in `venv` module via venvShellHook. Also trying to make it a bit friendlier to beginners by adding a bit more explanation to the code snippet and some remarks old-school virtualenv. Adjusting for venvShellHook and adding manual example Adding pip install and replacing python2 example with python3
* pythonPackages.venvShellHook: initFrederik Rietdijk2020-01-14
| | | | | This is a hook that loads a virtualenv from the specified `venvDir` location. If the virtualenv does not exist, it is created.
* Revert "python3: now points to python38"Frederik Rietdijk2020-01-10
| | | | | | This is going to require more work. This reverts commit 2dc4ab36772dfaf124af4d90e99c68038f46baa0.
* Merge branch 'master' into staging-nextVladimír Čunát2020-01-08
|\ | | | | | | The nss rebuild isn't so small.
| * python: Add support for installing Python eggsadisbladis2020-01-08
| |
* | python3: now points to python38Frederik Rietdijk2020-01-04
| |
* | Docs: document we have python38Frederik Rietdijk2020-01-04
|/
* manual: specify interpreter in virtualenv shellDaiderd Jordan2019-12-17
| | | | | Without this virtualenv might try to setup an environment for a different version of python then the one specified in the expression.
* documentation: show combining python35.withPackages and mkShellArnout Engelen2019-11-13
| | | | this had me stumped - thanks to adisbladis on irc
* doc: fix tiny typoStig Otnes Kolstad2019-10-24
|
* doc/python: clarify python nix tooling effortsAnders Riutta2019-10-14
| | | | | @garbas and @seppeljordan, are these updates correct? I removed `offlinehacker/pypi2nix` as an unmaintained ancestor of the current repo `nix-community/pypi2nix`. It appears @garbas forked `offlinehacker/pypi2nix` to `garbas/pypi2nix` and then handed off maintainership to @seppeljordan, transferring the repo to `nix-community/pypi2nix`.
* Split buildPythonPackage into setup hooksFrederik Rietdijk2019-09-06
| | | | | | | | | | | | | | | | | | | | | | | | This commit splits the `buildPythonPackage` into multiple setup hooks. Generally, Python packages are built from source to wheels using `setuptools`. The wheels are then installed with `pip`. Tests were often called with `python setup.py test` but this is less common nowadays. Most projects now use a different entry point for running tests, typically `pytest` or `nosetests`. Since the wheel format was introduced more tools were built to generate these, e.g. `flit`. Since PEP 517 is provisionally accepted, defining a build-system independent format (`pyproject.toml`), `pip` can now use that format to execute the correct build-system. In the past I've added support for PEP 517 (`pyproject`) to the Python builder, resulting in a now rather large builder. Furthermore, it was not possible to reuse components elsewhere. Therefore, the builder is now split into multiple setup hooks. The `setuptoolsCheckHook` is included now by default but in time it should be removed from `buildPythonPackage` to make it easier to use another hook (curently one has to pass in `dontUseSetuptoolsCheck`).
* buildPythonPackage: add support for setupPyGlobalFlags (2)Frederik Rietdijk2019-07-15
|
* Revert "buildPythonPackage: add support for setupPyDistFlags"Frederik Rietdijk2019-07-13
| | | | | | | I merged this a bit too quick. We need to have a closer look at it. See the points brought up in https://github.com/NixOS/nixpkgs/pull/64682. This reverts commit 1e0ebdb8a4fe94db67b6520225d325292d60247c.
* buildPythonPackage: add support for setupPyDistFlagsKirill Boltaev2019-07-13
| | | | Flags passed to the "python setup.py" command.
* Docs Python: fix example on how to override the package setFrederik Rietdijk2019-07-05
| | | | | Not passing in the newly created interpreter as `self` results in an incorrect `passthru`. Solves #64334.
* Add documentation for recent permitUserSite change (#61502)Tom McLaughlin2019-05-15
|
* doc: fix syntax error in python documentationLinus Heckemann2019-04-25
|
* python-docs: typocdyson372019-04-23
|
* treewide: Change URLs to HTTPSDaniel Schaefer2019-04-22
| | | | | | Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them if there's actual content. Inspired by https://github.com/NixOS/nixpkgs/issues/60004
* fix Including a derivation using callPackageworldofpeace2019-03-24
| | | | The example didn't use pkgs.
* fixup! doc/python: cleanup examples, referencesworldofpeace2019-03-24
|
* doc/python: cleanup examples, referencesworldofpeace2019-03-22
|
* doc/python: remove unnecessary let statementFelix Biggs2019-03-22
|
* buildPythonPackage: always export `LANG=C.UTF-8`Frederik Rietdijk2019-02-23
|
* buildPythonPackage: initial support for PEP 517Frederik Rietdijk2019-02-23
|
* buildPython*: enable strictDepsFrederik Rietdijk2019-02-17
|
* mkl: include Intel's libiomp.so in the MKL RPM unpackBenjamin Hipple2018-12-19
| | | | | | | | | | | | | | | | | | Since Intel's default openmp implementation is available in the same src tarball, we can just include it in the package. This means that `mkl` now "just works" without any environment variables, fragile setup-hooks, or forced propagation. Since the openmp implementation is only needed at runtime (and for test cases), users can substitute a different one if they prefer by exporting it with `LD_PRELOAD`, which is how Intel recommends handling this. If they do not do so, `libiomp.so` lives next to `libmkl_rt.so` and thus will be in the RPATH as a sane default. Since this still comes from the same src tarball, we can ship it without losing the fixed-output derivation; likewise, since Hydra is not building or caching these, shipping these proprietary packages costs no bandwidth for the nix community.
* pypy3: init at 6.0.0Anders Kaseorg2018-12-19
| | | | Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* Merge master into staging-nextFrederik Rietdijk2018-11-11
|\
| * doc: fix default python interpreterBenjamin Hipple2018-11-10
| | | | | | | | The default for `python3` is currently `python36`.
* | Merge master into staging-nextFrederik Rietdijk2018-11-10
|\|