scoder · GitHub

I'm trying to install pyquery which depends on lxml with pypy 5.0 on the latest OSX. I installed pypy via Macports, if it matters:

$ pypy
Python 2.7.10 (246c9cf22037b11dc0e8c29ce3f291d3b8c5935a, Mar 11 2016, 22:54:35)
[PyPy 5.0.0 with GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>>

I create an empty virtualenv:

$ virtualenv -p /opt/local/bin/pypy .venv_pypy
Running virtualenv with interpreter /opt/local/bin/pypy
New pypy executable in /Users/ruipacheco/Projects/repsandsets/.venv_pypy/bin/pypy
Installing setuptools, pip, wheel...done.

And then try to install PyQuery and it fails with the same error I had before:

$ pip install pyquery
Collecting pyquery
  Using cached pyquery-1.2.11-py2-none-any.whl
Collecting lxml>=2.1 (from pyquery)
  Using cached lxml-3.5.0.tar.gz
Collecting cssselect>0.7.9 (from pyquery)
Building wheels for collected packages: lxml
  Running setup.py bdist_wheel for lxml ... error
  Complete output from command /Users/ruipacheco/Projects/repsandsets/.venv_pypy/bin/pypy -u -c "import setuptools, tokenize;__file__='/private/var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/pip-build-zluTRO/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/tmp07paafpip-wheel- --python-tag pp250:
  Building lxml version 3.5.0.
  Building without Cython.
  Using build configuration of libxslt 1.1.28
  Building against libxml2/libxslt in the following directory: /opt/local/lib
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.11-x86_64-2.7
  creating build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/_elementpath.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/builder.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/cssselect.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/doctestcompare.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/ElementInclude.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/sax.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/usedoctest.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/builder.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/clean.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/defs.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/diff.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/formfill.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/html5parser.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/soupparser.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron
  copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron
  copying src/lxml/lxml.etree.h -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.11-x86_64-2.7/lxml
  copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/config.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/rng
  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/rng
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl
  creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build/temp.macosx-10.11-x86_64-2.7
  creating build/temp.macosx-10.11-x86_64-2.7/src
  creating build/temp.macosx-10.11-x86_64-2.7/src/lxml
  cc -arch x86_64 -O2 -fPIC -Wimplicit -I/opt/local/include -I/opt/local/include/libxml2 -Isrc/lxml/includes -I/Users/ruipacheco/Projects/repsandsets/.venv_pypy/include -c src/lxml/lxml.etree.c -o build/temp.macosx-10.11-x86_64-2.7/src/lxml/lxml.etree.o -w -flat_namespace
  src/lxml/lxml.etree.c:4323:15: error: no member named 'tracing' in 'struct _ts'
        tstate->tracing++;
        ~~~~~~  ^
  src/lxml/lxml.etree.c:4324:15: error: no member named 'use_tracing' in 'struct _ts'
        tstate->use_tracing = 0;
        ~~~~~~  ^
  src/lxml/lxml.etree.c:4325:35: error: no member named 'c_tracefunc' in 'struct _ts'
        if (CYTHON_TRACE && tstate->c_tracefunc)
                            ~~~~~~  ^
  src/lxml/lxml.etree.c:4326:19: error: no member named 'c_tracefunc' in 'struct _ts'
            tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
            ~~~~~~  ^
  src/lxml/lxml.etree.c:4326:39: error: no member named 'c_traceobj' in 'struct _ts'
            tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
                                ~~~~~~  ^
  src/lxml/lxml.etree.c:4326:58: error: use of undeclared identifier 'PyTrace_RETURN'
            tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
                                                           ^
  src/lxml/lxml.etree.c:4327:19: error: no member named 'c_profilefunc' in 'struct _ts'
        if (tstate->c_profilefunc)
            ~~~~~~  ^
  src/lxml/lxml.etree.c:4328:19: error: no member named 'c_profilefunc' in 'struct _ts'
            tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
            ~~~~~~  ^
  src/lxml/lxml.etree.c:4328:41: error: no member named 'c_profileobj' in 'struct _ts'
            tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
                                  ~~~~~~  ^
  src/lxml/lxml.etree.c:4328:62: error: use of undeclared identifier 'PyTrace_RETURN'
            tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
                                                               ^
  src/lxml/lxml.etree.c:4330:15: error: no member named 'use_tracing' in 'struct _ts'
        tstate->use_tracing = 1;
        ~~~~~~  ^
  src/lxml/lxml.etree.c:4331:15: error: no member named 'tracing' in 'struct _ts'
        tstate->tracing--;
        ~~~~~~  ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'use_tracing' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4275:32: note: expanded from macro '__Pyx_TraceCall'
            if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                         ~~~~~~  ^
  src/lxml/lxml.etree.c:555:43: note: expanded from macro 'unlikely'
    #define unlikely(x) __builtin_expect(!!(x), 0)
                                            ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'tracing' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4275:57: note: expanded from macro '__Pyx_TraceCall'
            if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                                                  ~~~~~~  ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'c_profilefunc' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4276:28: note: expanded from macro '__Pyx_TraceCall'
                    (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                     ~~~~~~  ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'c_tracefunc' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4276:70: note: expanded from macro '__Pyx_TraceCall'
                    (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                                                               ~~~~~~  ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'use_tracing' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4284:28: note: expanded from macro '__Pyx_TraceCall'
        if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                     ~~~~~~  ^
  src/lxml/lxml.etree.c:555:43: note: expanded from macro 'unlikely'
    #define unlikely(x) __builtin_expect(!!(x), 0)
                                            ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'tracing' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4284:53: note: expanded from macro '__Pyx_TraceCall'
        if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                                              ~~~~~~  ^
  src/lxml/lxml.etree.c:8735:3: error: no member named 'c_profilefunc' in 'struct _ts'
    __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/lxml/lxml.etree.c:4285:24: note: expanded from macro '__Pyx_TraceCall'
                (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                 ~~~~~~  ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  20 errors generated.
  Compile failed: command 'cc' failed with exit status 1
  creating var
  creating var/folders
  creating var/folders/9d
  creating var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp
  creating var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T
  cc -arch x86_64 -O2 -fPIC -Wimplicit -I/opt/local/include -I/opt/local/include/libxml2 -I/usr/include/libxml2 -c /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInit5PoWiT.c -o var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInit5PoWiT.o
  /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInit5PoWiT.c:2:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
  main (int argc, char **argv) {
  ^
  1 warning generated.
  cc -arch x86_64 var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInit5PoWiT.o -L/opt/local/lib -lxml2 -o a.out
  error: command 'cc' failed with exit status 1
  ----------------------------------------
  Failed building wheel for lxml
  Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, cssselect, pyquery
  Running setup.py install for lxml ... error
    Complete output from command /Users/ruipacheco/Projects/repsandsets/.venv_pypy/bin/pypy -u -c "import setuptools, tokenize;__file__='/private/var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/pip-build-zluTRO/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/pip-SkND3x-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ruipacheco/Projects/repsandsets/.venv_pypy/include/site/python2.7/lxml:
    Building lxml version 3.5.0.
    Building without Cython.
    Using build configuration of libxslt 1.1.28
    Building against libxml2/libxslt in the following directory: /opt/local/lib
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.11-x86_64-2.7
    creating build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/_elementpath.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/builder.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/cssselect.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/doctestcompare.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/ElementInclude.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/sax.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/usedoctest.py -> build/lib.macosx-10.11-x86_64-2.7/lxml
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/builder.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/clean.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/defs.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/diff.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/formfill.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/html5parser.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/soupparser.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/html
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron
    copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron
    copying src/lxml/lxml.etree.h -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.11-x86_64-2.7/lxml
    copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/config.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.11-x86_64-2.7/lxml/includes
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/rng
    copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/rng
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl
    copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl
    copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl
    creating build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.11-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    creating build/temp.macosx-10.11-x86_64-2.7
    creating build/temp.macosx-10.11-x86_64-2.7/src
    creating build/temp.macosx-10.11-x86_64-2.7/src/lxml
    cc -arch x86_64 -O2 -fPIC -Wimplicit -I/opt/local/include -I/opt/local/include/libxml2 -Isrc/lxml/includes -I/Users/ruipacheco/Projects/repsandsets/.venv_pypy/include -c src/lxml/lxml.etree.c -o build/temp.macosx-10.11-x86_64-2.7/src/lxml/lxml.etree.o -w -flat_namespace
    src/lxml/lxml.etree.c:4323:15: error: no member named 'tracing' in 'struct _ts'
          tstate->tracing++;
          ~~~~~~  ^
    src/lxml/lxml.etree.c:4324:15: error: no member named 'use_tracing' in 'struct _ts'
          tstate->use_tracing = 0;
          ~~~~~~  ^
    src/lxml/lxml.etree.c:4325:35: error: no member named 'c_tracefunc' in 'struct _ts'
          if (CYTHON_TRACE && tstate->c_tracefunc)
                              ~~~~~~  ^
    src/lxml/lxml.etree.c:4326:19: error: no member named 'c_tracefunc' in 'struct _ts'
              tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
              ~~~~~~  ^
    src/lxml/lxml.etree.c:4326:39: error: no member named 'c_traceobj' in 'struct _ts'
              tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
                                  ~~~~~~  ^
    src/lxml/lxml.etree.c:4326:58: error: use of undeclared identifier 'PyTrace_RETURN'
              tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
                                                             ^
    src/lxml/lxml.etree.c:4327:19: error: no member named 'c_profilefunc' in 'struct _ts'
          if (tstate->c_profilefunc)
              ~~~~~~  ^
    src/lxml/lxml.etree.c:4328:19: error: no member named 'c_profilefunc' in 'struct _ts'
              tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
              ~~~~~~  ^
    src/lxml/lxml.etree.c:4328:41: error: no member named 'c_profileobj' in 'struct _ts'
              tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
                                    ~~~~~~  ^
    src/lxml/lxml.etree.c:4328:62: error: use of undeclared identifier 'PyTrace_RETURN'
              tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
                                                                 ^
    src/lxml/lxml.etree.c:4330:15: error: no member named 'use_tracing' in 'struct _ts'
          tstate->use_tracing = 1;
          ~~~~~~  ^
    src/lxml/lxml.etree.c:4331:15: error: no member named 'tracing' in 'struct _ts'
          tstate->tracing--;
          ~~~~~~  ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'use_tracing' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4275:32: note: expanded from macro '__Pyx_TraceCall'
              if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                           ~~~~~~  ^
    src/lxml/lxml.etree.c:555:43: note: expanded from macro 'unlikely'
      #define unlikely(x) __builtin_expect(!!(x), 0)
                                              ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'tracing' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4275:57: note: expanded from macro '__Pyx_TraceCall'
              if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                                                    ~~~~~~  ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'c_profilefunc' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4276:28: note: expanded from macro '__Pyx_TraceCall'
                      (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                       ~~~~~~  ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'c_tracefunc' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4276:70: note: expanded from macro '__Pyx_TraceCall'
                      (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                                                                 ~~~~~~  ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'use_tracing' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4284:28: note: expanded from macro '__Pyx_TraceCall'
          if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                       ~~~~~~  ^
    src/lxml/lxml.etree.c:555:43: note: expanded from macro 'unlikely'
      #define unlikely(x) __builtin_expect(!!(x), 0)
                                              ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'tracing' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4284:53: note: expanded from macro '__Pyx_TraceCall'
          if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                                                ~~~~~~  ^
    src/lxml/lxml.etree.c:8735:3: error: no member named 'c_profilefunc' in 'struct _ts'
      __Pyx_TraceCall("__getitem__", __pyx_f[0], 111, 0, {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;});
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lxml/lxml.etree.c:4285:24: note: expanded from macro '__Pyx_TraceCall'
                  (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
                   ~~~~~~  ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    Compile failed: command 'cc' failed with exit status 1
    cc -arch x86_64 -O2 -fPIC -Wimplicit -I/opt/local/include -I/opt/local/include/libxml2 -I/usr/include/libxml2 -c /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInitfUkpun.c -o var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInitfUkpun.o
    /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInitfUkpun.c:2:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    main (int argc, char **argv) {
    ^
    1 warning generated.
    cc -arch x86_64 var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/xmlXPathInitfUkpun.o -L/opt/local/lib -lxml2 -o a.out
    error: command 'cc' failed with exit status 1
    ----------------------------------------
Command "/Users/ruipacheco/Projects/repsandsets/.venv_pypy/bin/pypy -u -c "import setuptools, tokenize;__file__='/private/var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/pip-build-zluTRO/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/pip-SkND3x-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ruipacheco/Projects/repsandsets/.venv_pypy/include/site/python2.7/lxml" failed with error code 1 in /private/var/folders/9d/x80sw8_x3hd2mp04hxndy2q80000gp/T/pip-build-zluTRO/lxml

Read the original on github.com ↗