summaryrefslogtreecommitdiff
path: root/file/python/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'file/python/setup.py')
-rw-r--r--file/python/setup.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/file/python/setup.py b/file/python/setup.py
new file mode 100644
index 000000000..7c8619484
--- /dev/null
+++ b/file/python/setup.py
@@ -0,0 +1,16 @@
+# 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])