Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vedithal-amd committed Feb 3, 2025
1 parent 4f98574 commit bd25f4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
21 changes: 9 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -378,23 +378,20 @@ add_custom_target(
# Change working directory to src
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src
# Check nuitka
COMMAND
${Python3_EXECUTABLE} -m pip list | grep -i nuitka > /dev/null 2>&1
COMMAND ${Python3_EXECUTABLE} -m pip list | grep -i nuitka > /dev/null 2>&1
# Check patchelf
COMMAND
${Python3_EXECUTABLE} -m pip list | grep -i patchelf > /dev/null 2>&1
COMMAND ${Python3_EXECUTABLE} -m pip list | grep -i patchelf > /dev/null 2>&1
# Build standalone binary
COMMAND
${Python3_EXECUTABLE} -m nuitka --mode=onefile --include-data-files=${PROJECT_SOURCE_DIR}/VERSION*=./
--enable-plugin=no-qt --include-package-data=dash_svg --include-package=dash_bootstrap_components
--include-package=rocprof_compute_soc --include-package-data=rocprof_compute_soc --include-package-data=utils rocprof-compute
${Python3_EXECUTABLE} -m nuitka --mode=onefile
--include-data-files=${PROJECT_SOURCE_DIR}/VERSION*=./ --enable-plugin=no-qt
--include-package-data=dash_svg --include-package=dash_bootstrap_components
--include-package=rocprof_compute_soc --include-package-data=rocprof_compute_soc
--include-package-data=utils rocprof-compute
# Remove library rpath from executable
COMMAND
patchelf --remove-rpath rocprof-compute.bin
COMMAND patchelf --remove-rpath rocprof-compute.bin
# Move to build directory
COMMAND
mv rocprof-compute.bin ${CMAKE_BINARY_DIR}
)
COMMAND mv rocprof-compute.bin ${CMAKE_BINARY_DIR})

install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
# Common helper routines for testing collateral

import inspect
from importlib.machinery import SourceFileLoader
import os
import shutil
import subprocess
from importlib.machinery import SourceFileLoader
from pathlib import Path
from unittest.mock import patch
import subprocess

import pandas as pd
import pytest
Expand Down

0 comments on commit bd25f4b

Please sign in to comment.