Permalink
Browse files

Updated to include manifest

  • Loading branch information...
1 parent 3567fad commit 27086d2b4eb2a4dd8d8aa681592d302142b08120 axiak@superdell committed Apr 2, 2010
Showing with 42 additions and 11 deletions.
  1. +15 −0 MANIFEST
  2. +2 −1 Makefile
  3. +1 −1 docs/conf.py
  4. +24 −9 setup.py
  5. BIN src/mbacreate
  6. BIN src/mbaquery
View
@@ -0,0 +1,15 @@
+README
+setup.py
+src/primetester.h
+src/bloomfilter.h
+src/primetester.c
+src/pybloomfilter.pyx
+src/mmapbitarray.c
+src/cbloomfilter.pxd
+src/pybloomfilter.c
+src/mmapbitarray.h
+src/bloomfilter.c
+tests/speedtest.py
+tests/testwords
+tests/words
+
View
@@ -7,6 +7,7 @@ install:
clean:
- rm -fv src/pybloomfilter.c
+ #rm -fv src/pybloomfilter.c
rm -rf build/
+ rm -rf dist/
rm -fv *so
View
@@ -64,7 +64,7 @@
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
-exclude_trees = ['_build']
+exclude_trees = ['_build','html']
# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
View
@@ -1,16 +1,31 @@
from distutils.core import setup
from distutils.extension import Extension
-from Cython.Distutils import build_ext
+
+ext_files = ["src/mmapbitarray.c",
+ "src/bloomfilter.c",
+ ]
+
+kwargs = {}
+
+try:
+ from Cython.Distutils import build_ext
+ print "Building from Cython"
+ ext_files.append("src/pybloomfilter.pyx")
+ kwargs['cmdclass'] = {'build_ext': build_ext}
+except ImportError:
+ ext_files.append("src/pybloomfilter.c")
+ print "Building from C"
ext_modules = [Extension("pybloomfilter",
- ["src/pybloomfilter.pyx",
- "src/primetester.c",
- "src/bloomfilter.c",
- "src/mmapbitarray.c",
- ])]
+ ext_files)]
setup(
- name = 'C Bloom Filter',
- cmdclass = {'build_ext': build_ext},
- ext_modules = ext_modules
+ name = 'C_Bloom_Filter',
+ version = "0.1.10",
+ author = "Michael Axiak",
+ author_email = "mike@axiak.net",
+ url = "http://code.google.com/p/python-bloom-filter/",
+ description = "A Bloom filter for Python built on mmap",
+ ext_modules = ext_modules,
+ **kwargs
)
View
Binary file not shown.
View
Binary file not shown.

0 comments on commit 27086d2

Please sign in to comment.