Use a setuptools entry point instead of a custom script

This commit is contained in:
mathieui 2014-10-27 18:39:32 +01:00
parent d2ca062eaa
commit 0f1beb89e9
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3
2 changed files with 2 additions and 5 deletions

View file

@ -1,4 +0,0 @@
#!/usr/bin/python3
from poezio import main
main()

View file

@ -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',