[MacPorts] #70667: Upgrade py-setuptools to versions 74.0.0 breaks g-ir-scanner

MacPorts noreply at macports.org
Sat Aug 31 12:10:56 UTC 2024


#70667: Upgrade py-setuptools to versions 74.0.0 breaks g-ir-scanner
---------------------------+---------------------------
 Reporter:  christophecvr  |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  High           |  Milestone:
Component:  ports          |    Version:
 Keywords:                 |       Port:  py-setuptools
---------------------------+---------------------------
 Since the upgrade of py-setuptools to version 74.0.0 all packages
 requiring Gobject and needing g-ir-scanner do not configure anymore with
 error message :

 {{{
 Traceback (most recent call last):
   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_gnome_gobject-introspection/gobject-introspection/work/build/tools/g
 -ir-scanner", line 103, in <module>
     from giscanner.scannermain import scanner_main
   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_gnome_gobject-introspection/gobject-
 introspection/work/build/giscanner/scannermain.py", line 35, in <module>
     from giscanner.ast import Include, Namespace
   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_gnome_gobject-introspection/gobject-
 introspection/work/build/giscanner/ast.py", line 29, in <module>
     from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_gnome_gobject-introspection/gobject-
 introspection/work/build/giscanner/sourcescanner.py", line 25, in <module>
     from .ccompiler import CCompiler
   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_gnome_gobject-introspection/gobject-
 introspection/work/build/giscanner/ccompiler.py", line 29, in <module>
     from distutils.msvccompiler import MSVCCompiler
 ModuleNotFoundError: No module named 'distutils.msvccompiler'

 }}}

 Found the difference concerning version-72.2.0 and the new one 74.0.0
 The msvccompiler is build in both versions. With one exception. In the
 version-72.2.0 We find the same compiler module under 2 names :
 - -msvccompiler.py
 - msvccompiler.py

 With version 74.0.0. only one name
 - -msvccompiler.py

 Since g-ir-scanner is only searching under the name :
 - distutils.msvccompiler
 it does not find it.

 How to solve ? I do not know. But this is a critical issue.

 I downgraded py-setuptools for the time.

-- 
Ticket URL: <https://trac.macports.org/ticket/70667>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list