pip install pycapnp fails on macOS
pwrdwnsys opened this issue · 2 comments
pwrdwnsys commented
As per PR #174 , it is currently not possible to pip install pycapnp
on macOS. The presence of hard coded -std=c++11
overrides any alternative std CFLAGS provided by the user:
clang -DNDEBUG -g -fwrapv -O3 -Wall --std=c++14 -c /var/folders/84/1z_nk7cx3hzb7wk9q15g78_c0000gn/T/tmpak14hfyw/vers.cpp -o var/folders/84/1z_nk7cx3hzb7wk9q15g78_c0000gn/T/tmpak14hfyw/vers.o --std=c++11
In addition, the bundled version numbering is outdated. User afonso360 has a fork which contains the updated std flags and bundled version number (thank you!). For reference for anyone else stuck by this, I was able to install pycapnp on macOS inside a Python 3.7 venv using the following:
pip install -U cython
pip install -U setuptools
git clone https://github.com/afonso360/pycapnp.git
pip install --install-option '--force-cython' ./pycapnp
FXCarl commented
I was able to install pycapnp on macOS 10.14 by
- export MACOSX_DEPLOYMENT_TARGET=10.14
- CFLAGS='-stdlib=libc++' pip install pycapnp
haata commented
macOS should work without extra options now with the master
branch.