I installed twine using the user flag (user scheme, according to the documentation):
pip install --user twine
But I can't use it as a command. For e.g. if I do:
twine --version
It gives me (this is obvious):
-bash: twine: command not found
I read this similar post, but could not find any satisfactory answer (answer is not accepted).
I know I can use:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
According to one of the answers.
But, my question is why it doesn't show up?
I checked the twine setup.py
and found that it using the entry_points
(which helps in setting the twine command
). In my assumption, the setup.py
is being ignored as it pip
using wheel
and not sdist
during the installation (or to download the package).