Skip to content

Python build succeeds but not added to /bin #4963

Discussion options

You must be logged in to vote

Short answer, you're just missing this snippet in your pyproject.toml:

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

All brew is doing is installing your package with pip:

$ git clone https://github.com/bhq12/serviciser .
$ python3 -m venv .venv
$ .venv/bin/pip install .
$  cat .venv/bin/serviciser
cat: .venv/bin/serviciser: No such file or directory

So really the problem is pip doesn't currently know about your CLI script. When pip installs a package, it reads a special build-system table in your pyproject.toml to know how to find your package metadata (you can read more about that here). If you omit this, it defaults to setuptools.

Now your pyproje…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@bhq12
Comment options

Answer selected by bhq12
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants