Closed thegoleffect closed 12 years ago
Are you building from git or from a release?
Also - what version of cython are you using?
Building from git. Cython version 0.11.2
To quote the readme: If you want to make changes to the bindings, you must have Cython >=0.13.
I guess it might be worth running a version check before proceeding to build using cython...
D'oh. Thanks for catching that.
Oddly, setup.py shouldn't even try cython buliding if you didn't specify --cython. I would git reset --hard and then just run setup.py build again.
This commit is for you: https://github.com/axiak/pyre2/commit/6222fe991320aaa33fc2bf156fdd9c08489d67de
Thanks. I was also using PyPy which doesn't seem to want to install Cython.
Are you talking about Pypi or pypy? If pypy, then I don't this will work. If Pypi, then the standard pip install/easy_install for re2 should just work. The only way this will fail is if you use the Makefile or if you add --cython to the setup.py parameter. This commit makes it so that doing so will no longer damage the c file forcing you to re-download, it will just safetly abort.
I meant PyPy. With normal Python, everything installs just fine but I have to rewrite some of my code to compensate.
How does one get an arbitrary c extension to work on PyPy? I was under the impression that they handled it on a largely case by case basis.
IDK, TBH.
I'm trying to install pyre2 from source. I have re2 installed w/o errors. I'm on Ubuntu 10.04. Here is the output from trying to build or install:
$ sudo python setup.py build -v running build running build_ext building 're2' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.6 -c src/re2.cpp -o build/temp.linux-x86_64-2.6/src/re2.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ src/re2.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. error: command 'gcc' failed with exit status 1