Skip to content

Commit 7723e75

Browse files
anatolyburakovclimberhunt
authored andcommitted
pwr: create a proper installable library
Signed-off-by: Anatoly Burakov <[email protected]>
1 parent 5582c0f commit 7723e75

File tree

8 files changed

+57
-0
lines changed

8 files changed

+57
-0
lines changed

pwr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ This is a python module which allows an application to modify power attributes o
44
frequnecy of the uncore, frequency profiles can be set to achieve desired performance, as well as that capabilities of a CPU can be obtained and its frequency and power consumption stats monitored.
55
The library will provide a list of core and/or CPU objects whose attributes can be modified and committed to make changes on the CPU.
66

7+
# Installation
8+
9+
The module can be installed with pip using the following command:
10+
11+
pip install "git+https://github.com/intel/CommsPowerManagement.git#egg=pwr&subdirectory=pwr"
12+
713
## Initialization
814
Creation of the cpu and core object lists is done using the `get_cores()/get_cpus()` functions, which return a list of the respective objects.
915

pwr/__init__.py

Whitespace-only changes.

pwr/pwr.egg-info/PKG-INFO

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Metadata-Version: 1.2
2+
Name: pwr
3+
Version: 0.1
4+
Summary: Intel pwr library
5+
Home-page: https://github.com/intel/CommsPowerManagement
6+
Author: Intel Corporation
7+
License: UNKNOWN
8+
Description: UNKNOWN
9+
Platform: UNKNOWN
10+
Classifier: License :: OSI Approved :: BSD License
11+
Classifier: Programming Language :: Python :: 2
12+
Classifier: Programming Language :: Python :: 2.7
13+
Classifier: Programming Language :: Python :: 3
14+
Classifier: Programming Language :: Python :: 3.3
15+
Classifier: Programming Language :: Python :: 3.4
16+
Classifier: Programming Language :: Python :: 3.5
17+
Classifier: Programming Language :: Python :: 3.6
18+
Classifier: Programming Language :: Python :: 3.7
19+
Classifier: Programming Language :: Python :: 3.8
20+
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4

pwr/pwr.egg-info/SOURCES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pwr.py
2+
setup.py
3+
pwr.egg-info/PKG-INFO
4+
pwr.egg-info/SOURCES.txt
5+
pwr.egg-info/dependency_links.txt
6+
pwr.egg-info/top_level.txt

pwr/pwr.egg-info/dependency_links.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

pwr/pwr.egg-info/top_level.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pwr

pwr.py renamed to pwr/pwr.py

File renamed without changes.

pwr/setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from setuptools import setup
2+
3+
setup(
4+
name='pwr',
5+
version='0.1',
6+
description='Intel pwr library',
7+
url='https://github.com/intel/CommsPowerManagement',
8+
author='Intel Corporation',
9+
py_modules=["pwr"],
10+
classifiers=[
11+
'License :: OSI Approved :: BSD License',
12+
'Programming Language :: Python :: 2',
13+
'Programming Language :: Python :: 2.7',
14+
'Programming Language :: Python :: 3',
15+
'Programming Language :: Python :: 3.3',
16+
'Programming Language :: Python :: 3.4',
17+
'Programming Language :: Python :: 3.5',
18+
'Programming Language :: Python :: 3.6',
19+
'Programming Language :: Python :: 3.7',
20+
'Programming Language :: Python :: 3.8',
21+
],
22+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
23+
)

0 commit comments

Comments
 (0)