setuptools_scm icon indicating copy to clipboard operation
setuptools_scm copied to clipboard

Editable install report outdated version after tagging occured

Open ssbarnea opened this issue 3 years ago • 3 comments

Once an editable install is performed the version reported by it remains the same even if the code was updated and a new tag was added.

At this moment the only workaround is to run pip install -e . again, as this will uninstall and reinstall the package and correct the the version.

As this is quite inconvenient and very easy to happen for developers we should better find a way to recalculate the version dynamically, without requiring a reinstallation, or at least to find a way to detect this needs to happen.

It seems that the editable install is mainly an pkgname.egg-link file that points to the location of the module, a place where we also have a cached packagename.egg-info folder which contains the version.

I am not sure if we have any hooks or tricks that could be used to refresh the outdated version.

ssbarnea avatar Jan 25 '21 13:01 ssbarnea