From 4bb7f99b6c52cadff32e79105b845f116b9118d7 Mon Sep 17 00:00:00 2001 From: Ian A Mason Date: Sun, 11 Apr 2021 13:53:12 -0700 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c93682e7..44283c5a 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,17 @@ For example, to use Python3 you can configure the project with cmake .. -DPython_ADDITIONAL_VERSIONS=3 ``` +### Python Version Skew + +On some platforms (i.e. Mac) cmake picks different python installations for the headers and library. If this happens, +you might try: +```cmake +cmake .. -DCMAKE_BUILD_TYPE=$type -DPYTHON_LIBRARY=$pythonlibrary -DPYTHON_INCLUDE_DIR=$pythonheaderfiledir +``` +For example: +``` +cmake .. -DCMAKE_BUILD_TYPE=Release -DPYTHON_LIBRARY=/opt/homebrew/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib -DPYTHON_INCLUDE_DIR=/opt/homebrew/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/include/python3.9/ +``` ## Installing Prebuilt Binaries Currently you can install the libpoly library (without python support) either using