-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
52 lines (47 loc) · 1.65 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import setuptools
from distutils.core import Extension
from distutils.command.build_ext import build_ext
with open("README.md", "r") as fh:
long_description = fh.read()
class cbuild_ext(build_ext):
def run(self):
super().run()
self.copy_file("perfmon/perfmon_int.py", f"{self.build_lib}/perfmon"),
setuptools.setup(
cmdclass={"build_ext": cbuild_ext},
name="performance_features",
version="0.2.6",
packages=["perfmon", "performance_features"],
package_dir={"perfmon": "perfmon", "performance_features": "performance_features"},
py_modules=["perfmon.perfmon_int", "performance_features.profiler"],
ext_modules=[
Extension(
"perfmon._perfmon_int",
sources=["perfmon/perfmon_int.i"],
libraries=["pfm"],
include_dirs=["/usr/include/perfmon"],
swig_opts=["-I/usr/include/"],
),
Extension(
"performance_features._workload",
sources=[
"performance_features/workload.i",
"performance_features/workload.cpp",
],
libraries=["pfm"],
extra_compile_args=["-fopenmp", "-std=c++11"],
swig_opts=["-c++"],
),
],
install_requires=["pandas", "scipy"],
author="Vitor Ramos",
author_email="[email protected]",
description="perf event wrapper for python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/VitorRamos/performance_features",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
],
)