diff --git a/seekwatcher/rundata.pyx b/seekwatcher/rundata.pyx index 2ebe122..4bbb4ce 100644 --- a/seekwatcher/rundata.pyx +++ b/seekwatcher/rundata.pyx @@ -242,7 +242,7 @@ cdef class rundata: if (this_op == last_op and this_rw == last_rw and this_dev == last_dev and - this_time - last_time < .5 and last_size < 512 and + this_time - last_time < .5 and last_size < 128 and this_sector == last_end and this_tag == last_tag): last_end += this_size last_size += this_size diff --git a/setup-cython.py b/setup-cython.py new file mode 100644 index 0000000..cd86986 --- /dev/null +++ b/setup-cython.py @@ -0,0 +1,21 @@ +# this setup.py is used to actuall compile the +# code into C files with cython +# +from distutils.core import setup, Extension +from Cython.Distutils import build_ext +import numpy +#import mpatch.version +#version=mpatch.version.version, +setup(name='seekwatcher', + version="0.50", + cmdclass = {'build_ext': build_ext}, + ext_modules=[ + Extension('seekwatcher.rundata', + ['seekwatcher/rundata.pyx'], + include_dirs = [numpy.get_include(),'.']), + Extension('seekwatcher.blkparse', + ['seekwatcher/blkparse.pyx'], + include_dirs = [numpy.get_include(),'.']) + ], + scripts=['cmd/seekwatcher'], + packages=['seekwatcher']) diff --git a/setup.py b/setup.py index 978d793..1b8a3ae 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,19 @@ +# this setup.py is meant for people that +# don't have cython installed and just want +# to make seekwatcher go +# from distutils.core import setup, Extension -from Cython.Distutils import build_ext import numpy #import mpatch.version #version=mpatch.version.version, setup(name='seekwatcher', version="0.50", - cmdclass = {'build_ext': build_ext}, ext_modules=[ Extension('seekwatcher.rundata', - ['seekwatcher/rundata.pyx'], + ['seekwatcher/rundata.c'], include_dirs = [numpy.get_include(),'.']), Extension('seekwatcher.blkparse', - ['seekwatcher/blkparse.pyx'], + ['seekwatcher/blkparse.c'], include_dirs = [numpy.get_include(),'.']) ], scripts=['cmd/seekwatcher'],