diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-06-04 11:18:49 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-06-04 11:31:42 +0200 |
| commit | 1684cfc14b7e569b4e4e6628d9edde1ad67bd7b1 (patch) | |
| tree | fb9a89e3625a6b7e836a59cfd0784daab1024c54 /setup.py | |
| parent | 7821efba175445d586149fef1f3d5fd12473ce8f (diff) | |
Package the *config scripts
These currently include menuconfig, oldconfig, syncconfig, alldefconfig,
and all{no,mod,yes}config, which probably cover what 90% of people will
need to use. More scripts could be added later.
Use the entry_points mechanism
(http://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creation),
which gives something that works out-of-the-box on Windows. It also
removes the .py suffix for the installed scripts.
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -13,13 +13,38 @@ setuptools.setup( author_email="ulfalizer@gmail.com", keywords="kconfig, kbuild", license="ISC", - py_modules=("kconfiglib",), + + py_modules=( + "kconfiglib", + "menuconfig", + "oldconfig", + "syncconfig", + "alldefconfig", + "allnoconfig", + "allmodconfig", + "allyesconfig", + ), + + entry_points={ + "console_scripts": ( + "menuconfig = menuconfig:_main", + "oldconfig = oldconfig:main", + "syncconfig = syncconfig:main", + "alldefconfig = alldefconfig:main", + "allnoconfig = allnoconfig:main", + "allmodconfig = allmodconfig:main", + "allyesconfig = allyesconfig:main", + ) + }, + # Needs support for unnumbered {} in format() python_requires=">=2.7,!=3.0.*", + project_urls={ "GitHub repository": "https://github.com/ulfalizer/Kconfiglib", "Examples": "https://github.com/ulfalizer/Kconfiglib/tree/master/examples" }, + classifiers=( "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", |
