倉庫指標
- Star
- (7,844 star)
- PR 合併指標
- (平均合併 5天 2小時) (30 天內合併 16 個 PR)
描述
Background: I'm supporting a CLI tool built on Python3.6, that is used by non-developers. As such, pipx is very attractive for making this hassle free for the users of the tool. At this time, pipx is using Python3.8 when installed with brew install pipx. This leads to an error of ERROR: No matching distribution found for dataclasses==0.7 when subsequently using pipx install on my CLI application.
The particular error I'm facing is probably irrelevant. I can imagine that there are other snags that could come with a surprise Python3.8 runtime.
I see that pipx install allows for a --python version switch. That seems like it will get me out of the woods for now. However, it occurs to me that requiring my end users to add this switch (and then down the road, probably updating it to 3.7, 3.8, etc) is not quite in line with the mission of pipx.
This request is to propose a way for a CLI application to expose its required Python version and for pipx to install and run it CLI with that version. That would make it easier for my end-users now and in the future when we are able and want to use a later Python version.