Skip to content

Commit

Permalink
v0.1 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jhgg committed Jul 22, 2015
0 parents commit bc4eb4d
Show file tree
Hide file tree
Showing 10 changed files with 909 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
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
8 changes: 8 additions & 0 deletions MANIFEST.in
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
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bitarray
Cython
nose
37 changes: 37 additions & 0 deletions setup.py
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'
)
Loading

0 comments on commit bc4eb4d

Please sign in to comment.