]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - tools/perf/util/setup.py
perf tools: do not look at ./config for configuration
[mirror_ubuntu-focal-kernel.git] / tools / perf / util / setup.py
CommitLineData
877108e4
ACM
1#!/usr/bin/python2
2
3from distutils.core import setup, Extension
1b7155f7
RR
4from os import getenv
5
6cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
7cflags += getenv('CFLAGS', '').split()
877108e4
ACM
8
9perf = Extension('perf',
10 sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
11 'util/evsel.c', 'util/cpumap.c', 'util/thread_map.c',
4498062e 12 'util/util.c', 'util/xyarray.c', 'util/cgroup.c'],
f6bbc1da 13 include_dirs = ['util/include'],
1b7155f7
RR
14 extra_compile_args = cflags,
15 )
877108e4
ACM
16
17setup(name='perf',
18 version='0.1',
19 description='Interface with the Linux profiling infrastructure',
20 author='Arnaldo Carvalho de Melo',
21 author_email='acme@redhat.com',
22 license='GPLv2',
23 url='http://perf.wiki.kernel.org',
24 ext_modules=[perf])