You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/11/21 10:21:08 UTC

[GitHub] [pulsar] wolfstudy commented on issue #8660: [CPP Client] Can't build successfully when LINK_STATIC is ON

wolfstudy commented on issue #8660:
URL: https://github.com/apache/pulsar/issues/8660#issuecomment-731559070


   We can use the following script to get the location of `PYTHON_LIBRARY` and `PYTHON_INCLUDE_DIR`:
   
   ```
   #!/bin/bash
   set -o errexit
   cd `dirname $0`
   PYTHON_LIB_DIR=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
   PYTHON_VERSION=$(python -c "import platform; print(platform.python_version()[:3])")
   PYTHON_LIBRARY="$PYTHON_LIB_DIR/libpython$PYTHON_VERSION.dylib"
   PYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
   echo "PYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR"
   echo "PYTHON_LIBRARY=$PYTHON_LIBRARY"
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org