Skip to content

Commit

Permalink
setup: add homeserver as console script
Browse files Browse the repository at this point in the history
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] matrix-org#10415

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
  • Loading branch information
Ma27 committed Nov 29, 2021
1 parent d08ef6f commit 2977bb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2977bb3

Please sign in to comment.