From 1684cfc14b7e569b4e4e6628d9edde1ad67bd7b1 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 4 Jun 2018 11:18:49 +0200 Subject: 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. --- setup.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 4e0676d..54899fb 100644 --- a/setup.py +++ b/setup.py @@ -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", -- cgit v1.2.3