git.iko.soy/typeable/nixpkgs
on master help sign in
Python: update docs separate output tkinter
commitd3766b2601ca684eeccdbf2b3d4220ff009c1001 authorFrederik Rietdijk <fridh@fridh.nl> dateMon 10 Oct 2016, 09:54 (10 years ago) parent104c50d
1 file changed+5−20
doc/languages-frameworks/python.md+5−20
doc/languages-frameworks/python.md+5−20
@@ -416,29 +416,14 @@ aliases `python` and `python3` correspond to respectively `python27` and
416416`python35`. The Nix expressions for the interpreters can be found in
417417`pkgs/development/interpreters/python`.
418418
419−
420−#### Missing modules standard library
421−
422−The interpreters `python26` and `python27` do not include modules that
423−require external dependencies. This is done in order to reduce the closure size.
424−The following modules need to be added as `buildInput` explicitly:
425−
426−* `python.modules.bsddb`
427−* `python.modules.curses`
428−* `python.modules.curses_panel`
429−* `python.modules.crypt`
430−* `python.modules.gdbm`
431−* `python.modules.sqlite3`
432−* `python.modules.tkinter`
433−* `python.modules.readline`
434−
435−For convenience `python27Full` and `python26Full` are provided with all
436−modules included.
437−
438419All packages depending on any Python interpreter get appended
439420`out/{python.sitePackages}` to `$PYTHONPATH` if such directory
440421exists.
441422
423+#### Missing `tkinter` module standard library
424+
425+To reduce closure size the `Tkinter`/`tkinter` module is available as `python.tkinter`.
426+
442427#### Attributes on interpreters packages
443428
444429Each interpreter has the following attributes:
@@ -448,7 +433,7 @@ Each interpreter has the following attributes:
448433- `buildEnv`. Function to build python interpreter environments with extra packages bundled together. See section *python.buildEnv function* for usage and documentation.
449434- `withPackages`. Simpler interface to `buildEnv`. See section *python.withPackages function* for usage and documentation.
450435- `sitePackages`. Alias for `lib/${libPrefix}/site-packages`.
451−- `executable`. Name of the interpreter executable, ie `python3.4`.
436+- `executable`. Name of the interpreter executable, e.g. `python3.4`.
452437
453438### Building packages and applications
454439