File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,8 +88,9 @@ def generate(scorep_config, keep_files=False):
8888 # setuptools, which replaces distutils, calls uname in python < 3.9 during distutils bootstraping.
8989 # When LD_PRELOAD is set, this leads to preloading Score-P to uname, and crashes the later tracing.
9090 # To avoid this, we need to do the distutils bootstrap as late as possible.
91- import distutils .ccompiler
92- cc = distutils .ccompiler .new_compiler ()
91+ # Setuptools does not support ccompiler.new_compiler https://github.com/pypa/setuptools/issues/4540
92+ from setuptools ._distutils .ccompiler import new_compiler
93+ cc = new_compiler ()
9394
9495 compiled_subsystem = cc .compile (
9596 [temp_dir + "/scorep_init.c" ], output_dir = temp_dir )
Original file line number Diff line number Diff line change 11import os
22import sys
3- from distutils . core import setup , Extension
3+ from setuptools import setup , Extension
44import scorep .helper
55from scorep .instrumenter import has_c_instrumenter
66
You can’t perform that action at this time.
0 commit comments