Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup: replace deprecated distutils by setuptools #223

Merged
merged 4 commits into from Oct 24, 2023

Commits on Oct 17, 2023

  1. setup: replace distutils.log by logging library

    `distutils.log` is deprecated. See
    https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html
    
    Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
    bdrung committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    ddb5484 View commit details
    Browse the repository at this point in the history
  2. setup: drop DistUtilsExtra version check

    Commit 90046b7 introduced the check for
    DistUtilsExtra >= 2.24 in 2011. Since `distutils.version` is deprecated,
    drop this version check.
    
    Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
    bdrung committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    71ded7c View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. setup: explicitly list packages to install

    A future commit will port build_java to a custom setuptools module which
    should not be installed. To avoid installing such modules, explicitly
    list all packages that should be installed.
    
    Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
    bdrung committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    1a8deb1 View commit details
    Browse the repository at this point in the history
  2. setup: port build_java to setuptools

    Using distutils directly is deprecated. Port `build_java_subdir` and the
    installation of the Java files to a setuptools plugin.
    
    packages needs to be specified for the `setup` call to avoid installing
    `setuptools_apport`.
    
    Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
    bdrung committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    c59fba3 View commit details
    Browse the repository at this point in the history