-
For instance, this toy project dumbpw. I define the entrypoint in pyproject.toml: [tool.poetry.scripts]
dumbpw = "dumbpw.cli:cli" However, if I run a pex archive, I get a python interpreter and not the dumbpw cli interface. How might I do this with pex? |
Beta Was this translation helpful? Give feedback.
Answered by
jsirois
May 4, 2024
Replies: 1 comment 4 replies
-
The
In general there is a lot of reading to do in |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
rpdelaney
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
-c / --script
option can be used to set the PEX entry point to a console script at build time (usePEX_SCRIPT=dumbpw my.pex
to change this at runtime). So, for example, in the root of your repo run:In general there is a lot of reading to do in
pex --help
.