From 03799a2d330c6dbbe12154d4bcea236210b4f6ed Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Mon, 26 Aug 2013 20:12:32 -0400 Subject: Improve the package structure of pycdec This change should not break anything, but now you can run: python setup.py build_ext --inplace and use the cleaner: PYTHONPATH=/path/to/cdec/python python -m ... --- python/src/sa/_sa.pyx | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 python/src/sa/_sa.pyx (limited to 'python/src/sa/_sa.pyx') diff --git a/python/src/sa/_sa.pyx b/python/src/sa/_sa.pyx deleted file mode 100644 index 4716d174..00000000 --- a/python/src/sa/_sa.pyx +++ /dev/null @@ -1,30 +0,0 @@ -import logging -import resource -import gzip - -def monitor_cpu(): - return (resource.getrusage(resource.RUSAGE_SELF).ru_utime+ - resource.getrusage(resource.RUSAGE_SELF).ru_stime) - -def gzip_or_text(char* filename): - if filename.endswith('.gz'): - return gzip.GzipFile(filename) - else: - return open(filename) - -logger = logging.getLogger('cdec.sa') - -include "float_list.pxi" -include "int_list.pxi" -include "str_map.pxi" -include "data_array.pxi" -include "alignment.pxi" -include "bilex.pxi" -include "veb.pxi" -include "lcp.pxi" -include "sym.pxi" -include "rule.pxi" -include "precomputation.pxi" -include "suffix_array.pxi" -include "rulefactory.pxi" -include "features.pxi" -- cgit v1.2.3