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:
parent
6b4b796c48
commit
e0655e4faf
8
setup.py
8
setup.py
|
@ -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'],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue