Page MenuHomeSoftware Heritage

tox/sphinx-dev: Workaround really long dependencies installation
ClosedPublic

Authored by anlambert on Apr 14 2021, 4:39 PM.

Details

Summary

The new pip resolver ends up backtracking numerous packages when
installing all depencies in a single pip command but this is
terribly slow and long to execute.

A workaround is to install each swh package one at a time by
executing pip multiple times, no backtracking happens in that
case and it reduces considerably the overall installation time.

Another advantage of proceeding like this is that it ensures each
swh package will be installed in development mode.

Also increase tox verbosity when calling make to have some feeback
of what it is doing.

Diff Detail

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

Event Timeline

ardumont added a subscriber: ardumont.

lgtm

plus it matches how we do it in the bin/install (or update or both) we mention in the docs.

This revision is now accepted and ready to land.Apr 14 2021, 4:56 PM

lgtm

plus it matches how we do it in the bin/install (or update or both) we mention in the docs.

Oh I did not see rDENVe6fbb0f3bccfae007b5418d6be524c9dfbb6a417.

Cool, I can remove those hacks in swh-environment Jenkins job then.