Skip to content

Commit

Permalink
Setup a non-cython setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismason-xx committed Sep 15, 2009
1 parent ecfaba5 commit 2412a7d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion seekwatcher/rundata.pyx
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions 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'])
10 changes: 6 additions & 4 deletions 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'],
Expand Down

0 comments on commit 2412a7d

Please sign in to comment.