symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics
https://symforce.org
Apache License 2.0
1.44k stars 147 forks source link

$(nproc) fails on `make docs` for mac #136

Closed hayk-skydio closed 2 years ago

hayk-skydio commented 2 years ago

Trying to build docs on a mac, getting this error with zsh:

        SYMFORCE_LOGLEVEL=WARNING /usr/bin/env python3 -m sphinx -b html docs build/docs -j $(nproc)
/bin/sh: nproc: command not found
usage: __main__.py [OPTIONS] SOURCEDIR OUTPUTDIR [FILENAMES...]
__main__.py: error: argument -j: expected one argument
make: *** [docs_html] Error 2
hayk-skydio commented 2 years ago

https://github.com/memkind/memkind/issues/33#issuecomment-540614162 --> use sysctl -n hw.logicalcpu for mac?