Closed greut closed 10 years ago
2 issues here- the python fallback wasn't being installed correctly and the header wasn't included in the tarball. these both should be fixed in 0.3.1, can you give that a try to confirm?
LGTM :+1:, thanks!
$ pip install jellyfish
Downloading/unpacking jellyfish
Downloading jellyfish-0.3.1.tar.gz
Running setup.py (path:~/.virtualenvs/pu/build/jellyfish/setup.py) egg_info for package jellyfish
Installing collected packages: jellyfish
Running setup.py install for jellyfish
building 'jellyfish.cjellyfish' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/jellyfishmodule.c -o build/temp.linux-x86_64-2.7/cjellyfish/jellyfishmodule.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/jaro.c -o build/temp.linux-x86_64-2.7/cjellyfish/jaro.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/hamming.c -o build/temp.linux-x86_64-2.7/cjellyfish/hamming.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/levenshtein.c -o build/temp.linux-x86_64-2.7/cjellyfish/levenshtein.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/damerau_levenshtein.c -o build/temp.linux-x86_64-2.7/cjellyfish/damerau_levenshtein.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/mra.c -o build/temp.linux-x86_64-2.7/cjellyfish/mra.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/soundex.c -o build/temp.linux-x86_64-2.7/cjellyfish/soundex.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/metaphone.c -o build/temp.linux-x86_64-2.7/cjellyfish/metaphone.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/nysiis.c -o build/temp.linux-x86_64-2.7/cjellyfish/nysiis.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cjellyfish/porter.c -o build/temp.linux-x86_64-2.7/cjellyfish/porter.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/cjellyfish/jellyfishmodule.o build/temp.linux-x86_64-2.7/cjellyfish/jaro.o build/temp.linux-x86_64-2.7/cjellyfish/hamming.o build/temp.linux-x86_64-2.7/cjellyfish/levenshtein.o build/temp.linux-x86_64-2.7/cjellyfish/damerau_levenshtein.o build/temp.linux-x86_64-2.7/cjellyfish/mra.o build/temp.linux-x86_64-2.7/cjellyfish/soundex.o build/temp.linux-x86_64-2.7/cjellyfish/metaphone.o build/temp.linux-x86_64-2.7/cjellyfish/nysiis.o build/temp.linux-x86_64-2.7/cjellyfish/porter.o -o build/lib.linux-x86_64-2.7/jellyfish/cjellyfish.so
Successfully installed jellyfish
Cleaning up...
Hi,
I'm having a quite similar issue about cjellyfish.
When I pip install it it goes super clean. Though, when I try to install it in a virgin virtualenv it will only install the pure python version of function :
Finished processing dependencies for jellyfish==0.5.6
***************************************************************************
WARNING: C extension could not be compiled, falling back to pure Python.
***************************************************************************
any clue ? how should I compile C version of jellyfish distances in my virtualenv ?
By the way, very convenient package :D !
Dithyrambe
Can you show more of the error? There's likely compiler errors near that most likely
False alarm,
I post my comment too fast ... Everything's all right. I just went messy when using pip.
Everything's fine, thanks for your reply.
Dithyrambe
Good job with the release of the 0.3 version, but I have some issues installing it on Ubuntu 14.04.
The dev version works just fine tough.
No
.h
were found in the.tar.gz
from PyPI