tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

Unable to build Python extension module (spdylay.c: No such file or directory) #42

Closed cyrus-and closed 11 years ago

cyrus-and commented 11 years ago

I compiled and installed Spdylay library (in the standard location) with success, I'm also able to compile the examples and custom programs, but when I try to build the Python extension module I get:

$ python setup.py build_ext
running build_ext
building 'spdylay' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c spdylay.c -o build/temp.linux-x86_64-2.7/spdylay.o
gcc: error: spdylay.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4

And indeed spdylay.c is not in that folder and neither in my whole file system (including this repo).

tatsuhiro-t commented 11 years ago

Run cython to generate spdylay.c from spdylay.pyx

$ cython spdylay.pyx

I recommend to use cython 0.16 or later.

cyrus-and commented 11 years ago

Yes, that worked, thanks. Maybe it was obvious but it was my first Python extension module build. I'd put that command in the README.

cyrus-and commented 11 years ago

Just noticed that build instructions appear in the documentation. Sorry, my fault...