Replies: 2 comments 4 replies
-
@tanng1999 if you use PDM to install into a virtual env, and then you activate the virtual env you will be able to run the script by its own name. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same question but I'm not sure I understood @Hnasar's hint. In Poetry you just write in your [tool.poetry.scripts]
mycli = "mycli.__main__:main" and you have the command |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a CLI using Click with Setuptools where I can run a console script by its own name. Here is an example,
https://click.palletsprojects.com/en/8.0.x/setuptools/
Is there a way to have PDM-enabled project to run a console script by its own name, i.e. without always prefix "pdm run"? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions