From 2977bb3ae5d79afcf08c6707bb40b2882bbe9dfa Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 16 Aug 2021 13:27:28 +0200 Subject: [PATCH] setup: add homeserver as console script With this change, it will be added to `$out/bin` in `nixpkgs` directly. This became necessary since our old workaround, calling it as script, doesn't work anymore since the shebangs were removed[1]. [1] https://github.com/matrix-org/synapse/pull/10415 Signed-off-by: Maximilian Bosch --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index ad99b3bd2c73..662d204ce8ed 100755 --- a/setup.py +++ b/setup.py @@ -152,6 +152,11 @@ def exec_file(path_segments): long_description=long_description, long_description_content_type="text/x-rst", python_requires="~=3.6", + entry_points={ + 'console_scripts': [ + 'homeserver = synapse.app.homeserver:main' + ] + }, classifiers=[ "Development Status :: 5 - Production/Stable", "Topic :: Communications :: Chat",