@@ -33,7 +33,7 @@ Overview
3333
3434Kconfiglib is a `Kconfig
3535<https://github.com/torvalds/linux/blob/master/Documentation/kbuild/kconfig-language.rst> `__
36- implementation in Python 2/ 3. It started out as a helper library, but now has a
36+ implementation in Python 3. It started out as a helper library, but now has a
3737enough functionality to also work well as a standalone Kconfig implementation
3838(including `terminal and GUI menuconfig interfaces <Menuconfig interfaces _>`_
3939and `Kconfig extensions `_).
@@ -121,9 +121,7 @@ available in the C tools.
121121the configuration and (optionally) information that can be used to rebuild only
122122files that reference Kconfig symbols that have changed value.
123123
124- Starting with Kconfiglib version 12.2.0, all utilities are compatible with both
125- Python 2 and Python 3. Previously, ``menuconfig.py `` only ran under Python 3
126- (i.e., it's now more backwards compatible than before).
124+ All utilities run under Python 3.
127125
128126**Note: ** If you install Kconfiglib with ``pip ``'s ``--user `` flag, make sure
129127that your ``PATH `` includes the directory where the executables end up. You can
@@ -164,18 +162,16 @@ Installation for the Linux kernel
164162
165163See the module docstring at the top of `kconfiglib.py <https://github.com/zephyrproject-rtos/Kconfiglib/blob/master/kconfiglib.py >`_.
166164
167- Python version compatibility (2.7/3.2+)
168- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
165+ Python version compatibility
166+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
169167
170- Kconfiglib and all utilities run under both Python 2.7 and Python 3.2 and
171- later. The code mostly uses basic Python features and has no third-party
172- dependencies, so keeping it backwards-compatible is pretty low effort.
168+ Kconfiglib and all utilities run under Python 3.9 and later. The code mostly
169+ uses basic Python features and has no third-party dependencies.
173170
174171The 3.2 requirement comes from ``argparse ``. ``format() `` with unnumbered
175172``{} `` is used as well.
176173
177- A recent Python 3 version is recommended if you have a choice, as it'll give
178- you better Unicode handling.
174+ A recent Python 3 version is recommended for better Unicode handling.
179175
180176Getting started
181177---------------
@@ -502,9 +498,9 @@ Other features
502498
503499- **Windows support **
504500
505- Nothing Linux-specific is used. Universal newlines mode is used for both
506- Python 2 and Python 3 .
507-
501+ Nothing Linux-specific is used. Universal newlines mode is used for
502+ interoperability between Linux and Windows .
503+
508504 The `Zephyr <https://www.zephyrproject.org/ >`_ project uses Kconfiglib to
509505 generate ``.config `` files and C headers on Linux as well as Windows.
510506
@@ -562,16 +558,15 @@ Three configuration interfaces are currently available:
562558 the terminal menuconfig. Only this mode distinguishes between symbols defined
563559 with ``config `` and symbols defined with ``menuconfig ``.
564560
565- ``guiconfig.py `` has been tested on X11, Windows, and macOS, and is
566- compatible with both Python 2 and Python 3.
561+ ``guiconfig.py `` has been tested on X11, Windows, and macOS.
567562
568563 Despite being part of the Python standard library, ``tkinter `` often isn't
569564 included by default in Python installations on Linux. These commands will
570565 install it on a few different distributions:
571566
572- - Ubuntu: ``sudo apt install python-tk ``/`` sudo apt install python3-tk ``
567+ - Ubuntu: ``sudo apt install python3-tk ``
573568
574- - Fedora: ``dnf install python2-tkinter ``/`` dnf install python3-tkinter ``
569+ - Fedora: ``dnf install python3-tkinter ``
575570
576571 - Arch: ``sudo pacman -S tk ``
577572
@@ -591,10 +586,6 @@ Three configuration interfaces are currently available:
591586 I did my best with the images, but some are definitely only art adjacent.
592587 Touch-ups are welcome. :)
593588
594- - `pymenuconfig <https://github.com/RomaVis/pymenuconfig >`_, built by `RomaVis
595- <https://github.com/RomaVis> `_, is an older portable Python 2/3 TkInter
596- menuconfig implementation.
597-
598589 Screenshot below:
599590
600591 .. image :: https://raw.githubusercontent.com/RomaVis/pymenuconfig/master/screenshot.PNG
@@ -784,7 +775,7 @@ configurations generated by the C tools, for a number of cases. See
784775for the available options.
785776
786777The `tests/reltest <https://github.com/zephyrproject-rtos/Kconfiglib/blob/master/tests/reltest >`_ script runs the test suite
787- and all the example scripts for both Python 2 and Python 3 , verifying that everything works.
778+ and all the example scripts, verifying that everything works.
788779
789780Rarely, the output from the C tools is changed slightly (most recently due to a
790781`change <https://www.spinics.net/lists/linux-kbuild/msg17074.html >`_ I added).
0 commit comments