From b4a195e4b0bb9e591a601402aa076ca8aded0773 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 18 Feb 2024 18:41:36 +0000 Subject: [PATCH] Use entry_points to install signalflow CLI --- .../libs/signalflow_cli/__init__.py | 0 setup.py | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) rename source/bin/signalflow => auxiliary/libs/signalflow_cli/__init__.py (100%) diff --git a/source/bin/signalflow b/auxiliary/libs/signalflow_cli/__init__.py similarity index 100% rename from source/bin/signalflow rename to auxiliary/libs/signalflow_cli/__init__.py diff --git a/setup.py b/setup.py index 19982f97..e61a911d 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,7 @@ def build_extension(self, ext): signalflow_packages = [ 'signalflow-stubs', 'signalflow_midi', + 'signalflow_cli', 'signalflow_examples', 'signalflow_visualisation', 'signalflow_analysis', @@ -96,5 +97,9 @@ def build_extension(self, ext): "signalflow-stubs": ["*.pyi"], "signalflow": signalflow_package_data }, - scripts=['source/bin/signalflow'] + entry_points = { + 'console_scripts': [ + 'signalflow_test = signalflow_cli:main', + ], + } )