373a872a16
it's just easier to import this small amount of extra payload than to attempt a war on autotools.
17 lines
537 B
Python
17 lines
537 B
Python
# Python distutils build script for magic extension
|
|
from distutils.core import setup, Extension
|
|
|
|
magic_module = Extension('magic',
|
|
libraries = ['magic'],
|
|
library_dirs = ['./','../','../src','/usr/lib/'],
|
|
include_dirs = ['./','../','../src','/usr/include/'],
|
|
sources = ['py_magic.c'])
|
|
|
|
setup (name = 'Magic file extensions',
|
|
version = '0.1',
|
|
author = 'Brett Funderburg',
|
|
author_email = 'brettf@deepfile.com',
|
|
license = 'BSD',
|
|
description = 'libmagic python bindings',
|
|
ext_modules = [magic_module])
|