Name | Size | Last modified (GMT) | Description | |
Parent directory | 2024-11-11 14:31:23 | |||
Makefile | 1364 bytes | 2024-11-11 14:31:23 | ||
README | 1386 bytes | 2024-11-11 14:31:23 | ||
raw_pylibcpupower.swg | 6105 bytes | 2024-11-11 14:31:23 | ||
test_raw_pylibcpupower.py | 1040 bytes | 2024-11-11 14:31:23 |
1 This folder contains the necessary files to build the Python bindings for 2 libcpupower (aside from the libcpupower object files). 3 4 5 requirements 6 ------------ 7 8 * You need the object files in the libcpupower directory compiled by 9 cpupower's makefile. 10 * The SWIG program must be installed. 11 * The Python's development libraries installed. 12 13 Please check that your version of SWIG is compatible with the version of Python 14 installed on your machine by checking the SWIG changelog on their website. 15 https://swig.org/ 16 17 Note that while SWIG itself is GPL v3+ licensed; the resulting output, 18 the bindings code: is permissively licensed + the license of libcpupower's .o 19 files. For these bindings that means GPL v2. 20 21 Please see https://swig.org/legal.html and the discussion [1] for more details. 22 23 [1] 24 https://lore.kernel.org/linux-pm/Zqv9BOjxLAgyNP5B@hatbackup/ 25 26 27 build 28 ----- 29 30 Install SWIG and the Python development files provided by your distribution. 31 32 Build the object files for libcpupower by running make in the cpupower 33 directory. 34 35 Return to the directory this README is in to run: 36 37 $ make 38 39 40 testing 41 ------- 42 43 Please verify the _raw_pylibcpupower.so and raw_pylibcpupower.py files have 44 been created. 45 46 To run the test script: 47 48 $ python test_raw_pylibcpupower.py 49 50 51 credits 52 ------- 53 54 Original Bindings Author: 55 John B. Wyatt IV 56 jwyatt@redhat.com 57 sageofredondo@gmail.com 58 59 Copyright (C) 2024 Red Hat
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.