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

Ports from distutils to setuptools #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scorep/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def generate(scorep_config, keep_files=False):
# setuptools, which replaces distutils, calls uname in python < 3.9 during distutils bootstraping.
# When LD_PRELOAD is set, this leads to preloading Score-P to uname, and crashes the later tracing.
# To avoid this, we need to do the distutils bootstrap as late as possible.
import distutils.ccompiler
cc = distutils.ccompiler.new_compiler()
# Setuptools does not support ccompiler.new_compiler https://github.com/pypa/setuptools/issues/4540
from setuptools._distutils.ccompiler import new_compiler
cc = new_compiler()

compiled_subsystem = cc.compile(
[temp_dir + "/scorep_init.c"], output_dir=temp_dir)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import sys
from distutils.core import setup, Extension
from setuptools import setup, Extension
import scorep.helper
from scorep.instrumenter import has_c_instrumenter

Expand Down
Loading