diff options
author | Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> | 2018-07-30 08:00:13 +0300 |
---|---|---|
committer | Daniel Mach <daniel.mach@gmail.com> | 2018-11-19 18:17:12 +0300 |
commit | 94ba6d72932a25df22abd221bd5b20ae4f643cf3 (patch) | |
tree | aae85639188823cfea6fdbd4e0549e67e3dcfd3f /setup.py | |
parent | 6e9a1db4912fb9f18f21e55dcf4aa6b79de3ace2 (diff) |
setup.py: Add entrypoints for each repo_c executable
This will ensure that executable will be available after installed
the wheel.
The approach adapted from scikit-build/cmake-python-distributions
and scikit-build/ninja-python-distribution projects.
For more details, see https://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creation
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -22,6 +22,7 @@ setup( 'createrepo_c': 'src/python' }, cmake_args=[ + '-DBIN_INSTALL_DIR:PATH=src/python/data/bin', '-DBUILD_LIBCREATEREPO_C_SHARED:BOOL=OFF', '-DCREATEREPO_C_INSTALL_DEVELOPMENT:BOOL=OFF', '-DCREATEREPO_C_INSTALL_MANPAGES:BOOL=OFF', @@ -29,4 +30,12 @@ setup( '-DPYTHON_DESIRED:STRING=3', ], cmake_languages=['C'], + entry_points={ + 'console_scripts': [ + 'createrepo_c=createrepo_c:createrepo_c', + 'mergerepo_c=createrepo_c:mergerepo_c', + 'modifyrepo_c=createrepo_c:modifyrepo_c', + 'sqliterepo_c=createrepo_c:sqliterepo_c' + ] + }, ) |