-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make proper executable with entry_point #2
Comments
I did use the Should I do it in another way? |
sorry, yes, the lsp entry_point is 👍 I mean for the thing-what-runs, e.g. https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html setup(
...
entry_points = {
'console_scripts': ['json-lsp-or-whatever=json_lsp.main:main'],
}
...
) |
I see. So I would need two entry points, one for the console script (that actually runs the json-lsp binary) and one for lsp (that provides the spec)? |
Or go to ...and get reproducible wheels, too 🎡 |
right. then you can either use the shell helper instead of the python one... or just return the dictionary, and not have a dependency on on |
I didn't know about flit! Thanks for the pointer |
I'd recommend the
entry_point
approach, as it is generally preferable to usingpython -m
if possible, as-m
can have... unwanted side-effects. Further, aconda
downstream will do a good job of making it robust on different platforms.The text was updated successfully, but these errors were encountered: