setup.py 764 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/python2
  2. from distutils.core import setup, Extension
  3. from os import getenv
  4. cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
  5. cflags += getenv('CFLAGS', '').split()
  6. perf = Extension('perf',
  7. sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
  8. 'util/evsel.c', 'util/cpumap.c', 'util/thread_map.c',
  9. 'util/util.c', 'util/xyarray.c', 'util/cgroup.c'],
  10. include_dirs = ['util/include'],
  11. extra_compile_args = cflags,
  12. )
  13. setup(name='perf',
  14. version='0.1',
  15. description='Interface with the Linux profiling infrastructure',
  16. author='Arnaldo Carvalho de Melo',
  17. author_email='acme@redhat.com',
  18. license='GPLv2',
  19. url='http://perf.wiki.kernel.org',
  20. ext_modules=[perf])