Page MenuHomeSoftware Heritage

jobs/swh-environment: Simplify build script and workaround pip issue
ClosedPublic

Authored by anlambert on Oct 15 2021, 11:26 AM.

Details

Summary

The bin/install script from swh-environment has been updated to install
swh dependencies in a same manner as in the build script so we can now
use it.

Also workaround pip regression (https://github.com/pypa/pip/issues/10573)
by using the --no-use-pep517 option.

Also workaround pip regression (https://github.com/pypa/pip/issues/10573)
by temporarily pinning its version to <21.3.

I hacked on the jenkins job to test the changes and it is working again,
see https://jenkins.softwareheritage.org/job/DENV/job/tests/1670/console.

Related to T3663

Diff Detail

Repository
rCJSWH Jenkins jobs
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.
ardumont added a subscriber: ardumont.

ok, thx.

jobs/swh-environment.yaml
40

i don't know the pep id so might be good to explicit that.

This revision is now accepted and ready to land.Oct 15 2021, 11:41 AM
jobs/swh-environment.yaml
40

Unfortunately this is not the right solution, see T3663#72470.

Pinning pip to < 21.3 seems the only way to fix the build here.
Also D6479 needs to be landed first if we want to use the install script.

Remove the use of --no-use-pep517 as tree_sitter dependency fails to install otherwise.

At the end, temporarily pin pip version to <21.3 to fix the build.