my example (mehdi fawaz)
make sure to use the right python version to install your stuff:
for me, pyenv
puts the python version designed as global in the executable python
.
then, install the package with (in your shell, in the same directory as the "pyproject.toml" file):
YOUR_PYTHON_EXEC -m pip install -e .
make sure to replace YOUR_PYTHON_EXEC
by the right thing, which is usually something like python3
-e is to make sure that it is in dev mode
type (in your shell):
YOUR_PYTHON_EXEC -m pip uninstall YOUR_PACKAGE_NAME
make sure to replace YOUR_PYTHON_EXEC
and YOUR_PACKAGE_NAME
by the right thing
When you modify a source file in the directory where you installed your package, then you don't need to re-install it for python to consider the change. But this doesn't work for version: if you change the version, re-install your package.
You don't need to uninstall and then reinstall your package for it to be updated, just do as the installation says