Upgrading a dependency with slap add
will have Pip complaining if the upgraded version is not compatible with the requirement listed in the project
#55
Labels
enhancement
New feature or request
Installing your project with Pip will register its requirements in the
.dist-info
(also when linking, where it might instead be in.egg-info
, but it doesn't matter). When you then try to upgrade a dependency, for example withslap add my-dependency^0.4.0 --upgrade
, and the current declaration of the dependency is incompatible, for examplemy-dependency = "^0.3.0"
, then Pip will install it but you will get a warning that it is incompatible with your own project's installation.We could work around this by temporarily un-installing your project from the Python environment, and then installing it again. Doing that however might be very slow. If the project is linked with
slap link
orslap install --link
, then it could be fast because we just uninstall and then re-link it.Maybe we should have
slap add
do that if the project is linked, and then add a notice if the project is not linked but hard-installed that you should prefer to work with a linked install of your project.The text was updated successfully, but these errors were encountered: