summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-27 18:39:32 +0100
committermathieui <mathieui@mathieui.net>2014-10-27 18:49:10 +0100
commit0f1beb89e961b22b1db875cb9278fc6a28bc50be (patch)
tree0c29c54fe945c7fecfac9b24f19242f4404acbcc
parentd2ca062eaa190cd837c5073ca83e71d2834c7059 (diff)
downloadpoezio-0f1beb89e961b22b1db875cb9278fc6a28bc50be.tar.gz
poezio-0f1beb89e961b22b1db875cb9278fc6a28bc50be.tar.bz2
poezio-0f1beb89e961b22b1db875cb9278fc6a28bc50be.tar.xz
poezio-0f1beb89e961b22b1db875cb9278fc6a28bc50be.zip
Use a setuptools entry point instead of a custom script
-rwxr-xr-xscripts/poezio4
-rwxr-xr-xsetup.py3
2 files changed, 2 insertions, 5 deletions
diff --git a/scripts/poezio b/scripts/poezio
deleted file mode 100755
index 665edcaa..00000000
--- a/scripts/poezio
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/python3
-
-from poezio import main
-main()
diff --git a/setup.py b/setup.py
index aeac3737..6c70c208 100755
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,8 @@ setup(name="poezio",
'poezio_plugins', 'poezio_plugins.gpg', 'poezio_themes'],
package_dir = {'poezio': 'src', 'poezio_plugins': 'plugins', 'poezio_themes': 'data/themes'},
package_data = {'poezio': ['default_config.cfg']},
- scripts = ['scripts/poezio', 'scripts/poezio_gpg_export'],
+ scripts = ['scripts/poezio_gpg_export'],
+ entry_points={ 'console_scripts': [ 'poezio = poezio:main' ] },
data_files = [('share/man/man1/', ['data/poezio.1'])],
install_requires = ['sleekxmpp==1.2.4',