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