Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated to include manifest

  • Loading branch information...
commit 27086d2b4eb2a4dd8d8aa681592d302142b08120 1 parent 3567fad
axiak@superdell authored
View
15 MANIFEST
@@ -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
3  Makefile
@@ -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
2  docs/conf.py
@@ -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
33 setup.py
@@ -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
BIN  src/mbacreate
Binary file not shown
View
BIN  src/mbaquery
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.