BewareMyPower opened a new pull request #9690:
URL: https://github.com/apache/pulsar/pull/9690


   Fixes #9682 
   
   ### Motivation
   
   Currently, ci-cpp-tests uses `pulsar-build` image that is from 
`ubuntu:16.04` to build C++/Python client. The image uses `libboost-all-dev` 
for CMake to find boost dependencies. However, the Boost.Python library from 
Ubuntu 16.04's apt source only supports Python 2.
   
   ### Modifications
   
   Force CMake to find Python2 in CI. Specifying `PYTHON_INCLUDE_DIR` and 
`PYTHON_LIBRARY` could indicate the installation of Python to use. Since the 
`pulsar-build` image only contains Python binary but not the Python2 library 
(`libpython2.7so`), this PR installs `python-pip` to setup the Python2 library. 
Otherwise, CMake would still find the Python3 library(`libpython3.5.so`).
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   *(Please pick either of the following options)*
   
   This change is a trivial rework / code cleanup without any test coverage.


----------------------------------------------------------------
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:
[email protected]


Reply via email to