summaryrefslogtreecommitdiff
path: root/external/bsd/file/dist/python/setup.py
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-05-12 20:46:28 +0000
committerchristos <christos@NetBSD.org>2011-05-12 20:46:28 +0000
commit2e1c341a70f7caef4d6e90366d38ad67a73d4268 (patch)
treea36fffd54164a36beadc417d10011df51997f9e8 /external/bsd/file/dist/python/setup.py
parentb6f96da23234479bfc1f4f36bc0854ec46105fa9 (diff)
from ftp.astron.com.
- many security related fixes - no MAXPATHLEN limits - fixed missing text specification on ascii magic - new ``pascal'' style string formats - whitespace comparison fix - more magic
Diffstat (limited to 'external/bsd/file/dist/python/setup.py')
-rw-r--r--external/bsd/file/dist/python/setup.py20
1 files changed, 7 insertions, 13 deletions
diff --git a/external/bsd/file/dist/python/setup.py b/external/bsd/file/dist/python/setup.py
index 7c861948441..2c3b527bb89 100644
--- a/external/bsd/file/dist/python/setup.py
+++ b/external/bsd/file/dist/python/setup.py
@@ -1,16 +1,10 @@
# Python distutils build script for magic extension
-from distutils.core import setup, Extension
+from distutils.core import setup
-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',
+setup(name = 'Magic file extensions',
+ version = '0.2',
+ author = 'Reuben Thomas',
+ author_email = 'rrt@sc3d.org',
license = 'BSD',
- description = 'libmagic python bindings',
- ext_modules = [magic_module])
+ description = 'libmagic Python bindings',
+ py_modules = ['magic'])