Skip to content

Commit

Permalink
Removed wrongly commited printf's and removed unneeded includes from …
Browse files Browse the repository at this point in the history
…libraries path
  • Loading branch information
andrix committed Mar 28, 2011
1 parent 44b102f commit 1f12cef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*.pyc
build
6 changes: 2 additions & 4 deletions setup.py
Expand Up @@ -16,10 +16,8 @@

from distutils.core import setup, Extension

snappymodule = Extension('snappy',
include_dirs = ['/usr/local/include'],
libraries = ['snappy'],
library_dirs = ['/usr/local/lib', '/usr/lib'],
snappymodule = Extension('snappy',
libraries=['snappy'],
language='c++',
sources=['snappymodule.cc'])

Expand Down
3 changes: 0 additions & 3 deletions snappymodule.cc
Expand Up @@ -17,7 +17,6 @@
*/
#include <Python.h>
#include <string.h>
#include <stdio.h>

#ifdef __cplusplus
#include <string>
Expand Down Expand Up @@ -118,11 +117,9 @@ snappy__uncompress(PyObject *self, PyObject *args)
"Given compressed string is not valid!");
return NULL;
}
printf(" comp_size is %d\n", comp_size);

status = snappy_get_uncompressed_length(compressed, comp_size,
&uncomp_size);
printf(" uncomp_size is %d\n", uncomp_size);
if (!status) {
PyErr_SetString(SnappyCompressedLengthError,
"Can not calculate uncompressed length");
Expand Down

0 comments on commit 1f12cef

Please sign in to comment.