setup.py 764 字节
Newer Older
1 2 3
#!/usr/bin/python2

from distutils.core import setup, Extension
4 5 6 7
from os import getenv

cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
cflags += getenv('CFLAGS', '').split()
8 9 10 11

perf = Extension('perf',
		  sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
			     'util/evsel.c', 'util/cpumap.c', 'util/thread_map.c',
12
			     'util/util.c', 'util/xyarray.c', 'util/cgroup.c'],
13
		  include_dirs = ['util/include'],
14 15
		  extra_compile_args = cflags,
                 )
16 17 18 19 20 21 22 23 24

setup(name='perf',
      version='0.1',
      description='Interface with the Linux profiling infrastructure',
      author='Arnaldo Carvalho de Melo',
      author_email='acme@redhat.com',
      license='GPLv2',
      url='http://perf.wiki.kernel.org',
      ext_modules=[perf])