← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2083518] Re: distutils was removed in Python 3.12

 

Reviewed:  https://review.opendev.org/c/openstack/oslo.versionedobjects/+/936068
Committed: https://opendev.org/openstack/oslo.versionedobjects/commit/bfb028106660cb202a36e35a460682f0171aa9c4
Submitter: "Zuul (22348)"
Branch:    master

commit bfb028106660cb202a36e35a460682f0171aa9c4
Author: Takashi Kajinami <kajinamit@xxxxxxxxxxxxxxx>
Date:   Sat Nov 23 05:47:04 2024 +0900

    Replace distutils
    
    distutils module was deprecated in 3.10 and was removed in Python
    3.12 .
    
    https://docs.python.org/3.11/library/distutils.html
    
    Closes-Bug: #2083518
    Change-Id: I0e00619dbd9a5aede18517f73163ec6f1680f4b6


** Changed in: oslo.versionedobjects
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2083518

Title:
  distutils was removed in Python 3.12

Status in OpenStack Compute (nova):
  Fix Released
Status in oslo.versionedobjects:
  Fix Released

Bug description:
  Description
  ===========

  The built-in distutils module was deprecated in 3.10 and was removed
  in Python 3.12 .

  https://docs.python.org/3.11/library/distutils.html

  We should remove the remaining usage of it.

  ```
  $ git log -n 1
  commit 1ecab6dbc573fb0a60e35382269374193158b7f0 (HEAD -> master, origin/master, origin/HEAD)
  Merge: d88d968e96 1c20647a14
  Author: Zuul <zuul@xxxxxxxxxxxxxxxxxx>
  Date:   Thu Sep 5 16:04:22 2024 +0000

      Merge "doc: Fix markup syntax and typo"
  [tkajinam@fedora nova]$ grep -r -n distutils nova/
  nova/scheduler/filters/image_props_filter.py:17:from distutils import versionpredicate
  nova/version.py:31:    # these modules are accessible when distutils uses
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2083518/+subscriptions



References