blob: bbc982f5dd8b9ced999577ced4822a21c9a28779 [file] [log] [blame]
Arnaldo Carvalho de Melo877108e2011-01-29 15:44:29 -02001#!/usr/bin/python2
2
3from distutils.core import setup, Extension
Robert Richter1b7155f2011-03-29 20:02:57 +02004from os import getenv
5
6cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
7cflags += getenv('CFLAGS', '').split()
Arnaldo Carvalho de Melo877108e2011-01-29 15:44:29 -02008
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',
Arnaldo Carvalho de Melo44980622011-02-17 10:07:42 -020012 'util/util.c', 'util/xyarray.c', 'util/cgroup.c'],
Arnaldo Carvalho de Melof6bbc1d2011-01-31 20:56:27 -020013 include_dirs = ['util/include'],
Robert Richter1b7155f2011-03-29 20:02:57 +020014 extra_compile_args = cflags,
15 )
Arnaldo Carvalho de Melo877108e2011-01-29 15:44:29 -020016
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])