mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Use console_scripts to generate entry point
This is better than writing platform-dependant scripts to provide an entry point. The old way is kept as a fallback when setuptools is not available. Reference: http://python-packaging.readthedocs.org/en/latest/command-line-scripts.html#the-console-scripts-entry-point
This commit is contained in:
parent
c3a84510a1
commit
f36d04a758
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
@ -77,7 +77,6 @@ def main():
|
|||
platforms='Cross Platform',
|
||||
classifiers=['Programming Language :: Python :: 3'],
|
||||
packages=['xonsh'],
|
||||
scripts=['scripts/xonsh', 'scripts/xonsh.bat'],
|
||||
cmdclass={'install': xinstall, 'sdist': xsdist},
|
||||
)
|
||||
if HAVE_SETUPTOOLS:
|
||||
|
@ -87,8 +86,11 @@ def main():
|
|||
'pygments.lexers': ['xonsh = xonsh.pyghooks:XonshLexer',
|
||||
'xonshcon = xonsh.pyghooks:XonshConsoleLexer',
|
||||
],
|
||||
'console_scripts': ['xonsh = xonsh.main:main'],
|
||||
}
|
||||
skw['cmdclass']['develop'] = xdevelop
|
||||
else:
|
||||
skw['scripts'] = ['scripts/xonsh', 'scripts/xonsh.bat']
|
||||
setup(**skw)
|
||||
|
||||
logo = """
|
||||
|
|
Loading…
Add table
Reference in a new issue