Page MenuHomeSoftware Heritage

bin/update add support for (re)installing packages after update
ClosedPublic

Authored by zack on Mar 28 2020, 2:49 PM.

Details

Summary

after updating the repos it is often necessary to re-install packages
to take into account changes dependencies. This diff add support for doing
that, either as a standalone operation (bin/install) or together with repo
updating (bin/update --install).

I welcome feedback on whether, if this is accepted, we should update our doc at
https://docs.softwareheritage.org/devel/developer-setup.html to recommend using
bin/install instead of a manual pip command.

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

lgtm

Just a couple of nitpicks.

bin/install
3

Should be pip3.

And could you add $@ at the end (so I can use --user)?

  • bin/install: support user flags
bin/install
3

Uhm, our developer setup assumes people are running within a (python3) virtualenv, so pip is OK, and also what we document.

pip3 also works currently, but I'm not sure it will work in the long term.

I'm assuming this request is for making things work also outside a virtualenv, but I'm not sure it's something we should recommend/support.

Ack for "$@", added.

This revision is now accepted and ready to land.Mar 30 2020, 10:17 AM
  • bin/update add support for (re)installing packages after update
  • bin/install: support user flags