-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bc4eb4d
Showing
10 changed files
with
909 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
a.out | ||
*.a | ||
_pybloof.c | ||
*.o | ||
*.pyc | ||
*.so | ||
*.swp | ||
*egg-info | ||
build | ||
dist | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
include *.txt | ||
include MANIFEST.in | ||
include setup.py | ||
include setup.cfg | ||
|
||
recursive-include src *.c *.h *.py | ||
recursive-include tests *.c *.h *.py | ||
recursive-include docs *.html *.css *.gif *.jpg *.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bitarray | ||
Cython | ||
nose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from setuptools import setup | ||
from setuptools.extension import Extension | ||
from Cython.Distutils import build_ext | ||
from os.path import join | ||
import functools | ||
|
||
import os | ||
|
||
rel = functools.partial(join, os.getcwd()) | ||
|
||
ext_modules = [ | ||
Extension( | ||
"_pybloof", | ||
extra_compile_args=['-std=gnu99', '-O2', '-D_LARGEFILE64_SOURCE'], | ||
sources=["src/_pybloof.pyx", | ||
'src/MurmurHash3.c'], | ||
|
||
include_dirs=[rel('src')], | ||
library_dirs=[rel('src')] | ||
) | ||
] | ||
|
||
setup( | ||
name='pybloof', | ||
version='0.1', | ||
author='Jake Heinz', | ||
author_email='me@jh.gg', | ||
url="http://github.com/jhgg/pybloof", | ||
description='A high performance python bloom filter thing.', | ||
license='MIT License', | ||
cmdclass={'build_ext': build_ext}, | ||
zip_safe=False, | ||
package_dir={'': 'src'}, | ||
py_modules=['pyblouf'], | ||
ext_modules=ext_modules, | ||
test_suite='nose.collector' | ||
) |
Oops, something went wrong.