From e4d18f7b4ad095e94851e15853611b54fc5de399 Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Sat, 16 Sep 2023 16:00:15 +0200 Subject: [PATCH] feat: Change entrypoint name This will update the alternative shell script as well. It will now just pass the modules directory to python interpreter to execute the __main__ module. Signed-off-by: Sven Sager --- data/revpicommander | 12 +++++------- setup.py | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/data/revpicommander b/data/revpicommander index 0b4d77d..5457b18 100644 --- a/data/revpicommander +++ b/data/revpicommander @@ -1,9 +1,7 @@ #!/bin/sh -# Used to call the entry point, if packed with pybuild as application. -# PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/revpicommander/ \ -# --install-scripts=/usr/share/revpicommander/ -# -# In that case the entry point will not find the revpicommander module in -# the python lib. +# This script will create the entry point 'revpicommander', which is defined +# in the setup.py script. If you want to install this python module as an +# application and not in the python standard library directory, you will need +# to use this script for /usr/bin. -exec "/usr/share/revpicommander/revpicommander-gui" "$@" +exec python3 /usr/share/revpicommander/revpicommander "$@" diff --git a/setup.py b/setup.py index 6b4c095..227874b 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( ], entry_points={ 'gui_scripts': [ - 'revpicommander-gui = revpicommander.revpicommander:main', + 'revpicommander = revpicommander.revpicommander:main', ], },