Improve python wrapper generation
- Add "BUILD_PACKAGE" option that is OFF by default (CI issues) - Optionally package wrapper if python3.7 or above is present (hack for CI) - Optionally build wrapper if clang is present (hack for CI) - Improve dependency resolution for wrapper - Use python venv - Use pyproject.toml instead of setup.py - Use CMake install path to search for libamd_smi.so - Move python-specific CMakeLists into py-interface - Search for libamd_smi.so more aggressively Change-Id: Ie7dad676b0d4a5f58ad2b887db7fecf5b1297e3b Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# for details see:
|
||||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "amdsmi"
|
||||
authors = [
|
||||
{name = "AMD", email = "amd-smi.support@amd.com"},
|
||||
]
|
||||
version = '0.1'
|
||||
license = {file = "amdsmi/LICENSE"}
|
||||
readme = {file = "amdsmi/README.md", content-type = "text/markdown"}
|
||||
description = "SMI LIB - AMD GPU Monitoring Library"
|
||||
requires-python = ">=3.7"
|
||||
|
||||
[project.urls]
|
||||
"Homepage" = "https://github.com/RadeonOpenCompute/amdsmi"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["amdsmi"]
|
||||
Reference in New Issue
Block a user