setup.py 537 B

12345678910111213141516
  1. # Python distutils build script for magic extension
  2. from distutils.core import setup, Extension
  3. magic_module = Extension('magic',
  4. libraries = ['magic'],
  5. library_dirs = ['./','../','../src','/usr/lib/'],
  6. include_dirs = ['./','../','../src','/usr/include/'],
  7. sources = ['py_magic.c'])
  8. setup (name = 'Magic file extensions',
  9. version = '0.1',
  10. author = 'Brett Funderburg',
  11. author_email = 'brettf@deepfile.com',
  12. license = 'BSD',
  13. description = 'libmagic python bindings',
  14. ext_modules = [magic_module])