Page MenuHomeSoftware Heritage

setup.py: Fix debian unstable package build
ClosedPublic

Authored by anlambert on Thu, Sep 15, 4:52 PM.

Details

Summary

Apply fix as described in the package build log on unstable:

UserWarning: Distutils was imported before Setuptools, but importing
Setuptools also replaces the `distutils` module in `sys.modules`.
This may lead to undesirable behaviors or errors. To avoid these issues,
avoid using distutils directly, ensure that setuptools is installed in
the traditional way (e.g. not an editable install), and/or make sure that
setuptools is always imported before distutils.

See https://jenkins.softwareheritage.org/job/debian/job/packages/job/DSEA/job/gbp-buildpackage/89/console

Diff Detail

Repository
rDSEA Archive search
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8490 (id=30575)

Rebasing onto 977938aa11...

Current branch diff-target is up to date.
Changes applied before test
commit 50c07bb47d32d5f62bb73adb7f4ac3e859396f68
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Sep 15 16:50:30 2022 +0200

    setup.py: Fix debian unstable package build
    
    Apply fix as described in the package build log on unstable:
    
    UserWarning: Distutils was imported before Setuptools, but importing
    Setuptools also replaces the `distutils` module in `sys.modules`.
    This may lead to undesirable behaviors or errors. To avoid these issues,
    avoid using distutils directly, ensure that setuptools is installed in
    the traditional way (e.g. not an editable install), and/or make sure that
    setuptools is always imported before distutils.

See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/340/ for more details.

Update years in license header

Build is green

Patch application report for D8490 (id=30579)

Rebasing onto 977938aa11...

Current branch diff-target is up to date.
Changes applied before test
commit 070f015f4b44a488b1a5c1c1bb3197ae91e348d0
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Sep 15 16:50:30 2022 +0200

    setup.py: Fix debian unstable package build
    
    Apply fix as described in the package build log on unstable:
    
    UserWarning: Distutils was imported before Setuptools, but importing
    Setuptools also replaces the `distutils` module in `sys.modules`.
    This may lead to undesirable behaviors or errors. To avoid these issues,
    avoid using distutils directly, ensure that setuptools is installed in
    the traditional way (e.g. not an editable install), and/or make sure that
    setuptools is always imported before distutils.

See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/341/ for more details.

This revision is now accepted and ready to land.Mon, Sep 19, 10:45 AM