Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>2018-07-30 08:00:13 +0300
committerDaniel Mach <daniel.mach@gmail.com>2018-11-19 18:17:12 +0300
commit94ba6d72932a25df22abd221bd5b20ae4f643cf3 (patch)
treeaae85639188823cfea6fdbd4e0549e67e3dcfd3f /setup.py
parent6e9a1db4912fb9f18f21e55dcf4aa6b79de3ace2 (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.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index cdb5adc..84aaf40 100644
--- a/setup.py
+++ b/setup.py
@@ -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'
+ ]
+ },
)