Page MenuHomeSoftware Heritage

docker/pyutils: Install package in editable mode when possible
ClosedPublic

Authored by anlambert on Jun 1 2021, 2:57 PM.

Details

Summary

When overriding a swh package, if its source directory is writable
then install it in editable mode using pip.

It avoids unnecessary source copy and enables to hack directly on the
executed Python code (possibly trigerring application reload as with
django).

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

ardumont added subscribers: vlorentz, ardumont.

works for me ;)

@vlorentz heads up ^
(you started the rsync thingy iirc)

This revision is now accepted and ready to land.Jun 1 2021, 3:34 PM

works for me ;)

@vlorentz heads up ^
(you started the rsync thingy iirc)

I did not have any issue either regarding __pycache__ folder permissions but I do hot have the full context of the rsync thing so I will wait for @vlorentz review before landing this.