From 5b5363460c6b5b4643fc2e0047dfdc4c9a1ba8e3 Mon Sep 17 00:00:00 2001 From: NanoNabla <43477372+NanoNabla@users.noreply.github.com> Date: Wed, 29 Oct 2025 20:19:18 +0100 Subject: [PATCH] Fixes #177 --- README.md | 2 +- scorep/__main__.py | 7 ------- setup.py | 14 -------------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/README.md b/README.md index 0dae8fc..875d7a7 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ scorep is a module that allows tracing of python scripts using [Score-P](https:/ # Install -You need at least Score-P 5.0, build with `--enable-shared` and the gcc compiler plugin. +You need at least Score-P 5.0, build with `--enable-shared`. Please make sure that `scorep-config` is in your `PATH` variable. The Score-P community provides an unofficial PPA for Ubuntu LTS systems: https://launchpad.net/~score-p/+archive/ubuntu/releases . diff --git a/scorep/__main__.py b/scorep/__main__.py index 0cc4b88..01c0821 100644 --- a/scorep/__main__.py +++ b/scorep/__main__.py @@ -21,7 +21,6 @@ def scorep_main(argv=None): keep_files = False verbose = False - no_default_compiler = False no_instrumenter = False if scorep.instrumenter.has_c_instrumenter(): instrumenter_type = "cProfile" @@ -39,9 +38,6 @@ def scorep_main(argv=None): keep_files = True elif elem == "--verbose" or elem == '-v': verbose = True - elif elem == "--nocompiler": - scorep_config.append(elem) - no_default_compiler = True elif elem == "--nopython": no_instrumenter = True elif elem == "--noinstrumenter": @@ -68,9 +64,6 @@ def scorep_main(argv=None): else: prog_argv.append(elem) - if not no_default_compiler: - scorep_config.append("--compiler") - if len(prog_argv) == 0: _err_exit("Did not find a script to run") diff --git a/setup.py b/setup.py index 703ff60..6851060 100644 --- a/setup.py +++ b/setup.py @@ -13,20 +13,6 @@ 'Score-P not build with "--enable-shared". Link mode is:\n{}'.format(link_mode) ) -check_compiler = scorep.helper.get_scorep_config("C99 compiler used:") -if check_compiler is None: - check_compiler = scorep.helper.get_scorep_config("C99 compiler:") -if check_compiler is None: - raise RuntimeError("Can not parse the C99 compiler, aborting!") -if "gcc" in check_compiler: - gcc_plugin = scorep.helper.get_scorep_config("GCC plug-in support:") - if not ("yes" in gcc_plugin): - raise RuntimeError( - "Score-P uses GCC but is not build with GCC Compiler Plugin. " - "GCC plug-in support is:\n{}".format(gcc_plugin) - ) - - install_requires= ["setuptools>=68.0.0"] cmodules = []