Use entry_points instead of scripts

As decribed in https://click.palletsprojects.com/en/7.x/setuptools/ shebangs only work in
unix and OSX (and in cygwin on windows). By using the entry_points mechanism
Python will handle all cross-platform issues making it useable for everybody.
This commit is contained in:
Ben Spoor 2021-03-06 10:25:36 +01:00
parent 6b4b796c48
commit e0655e4faf
1 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,11 @@ It is released under the GNU GPL license.""",
'Topic :: Software Development :: Testing'
],
python_requires = '>=2.7',
scripts = [ 'flawfinder' ],
entry_points={
'console_scripts': [
'flawfinder = flawfinder:main',
],
},
data_files = [ ('share/man/man1', [ 'flawfinder.1.gz' ]) ],
py_modules = [ ],
py_modules = ['flawfinder'],
)