On 23-8-2016 00:57, Josh Durgin wrote: > On 08/22/2016 03:41 PM, Willem Jan Withagen wrote: >> On 23-8-2016 00:19, Josh Durgin wrote: >>> On 08/22/2016 07:37 AM, Willem Jan Withagen wrote: >>>> I was trying to do some tests on my Centos box. >>>> And ran into: >>>> >>>> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version >>>> "2.7.5", minimum required is "2") >>>> CMake Error at >>>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 >>>> (message): >>>> Could NOT find Python3Interp: Found unsuitable version "2.7.5", but >>>> required is at least "3" (found /usr/bin/python) >>>> Call Stack (most recent call first): >>>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313 >>>> (_FPHSA_FAILURE_MESSAGE) >>>> cmake/modules/FindPython3Interp.cmake:146 >>>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS) >>>> src/CMakeLists.txt:274 (find_package) >>>> >>>> Now is this due to me not being synced enough with master/HEAD, or is >>>> this an actual problem? >>> >>> It's not a strict requirement - you could add some conditionals >>> in src/pybind/CMakeLists.txt to disable it if you don't want to build >>> python 3 versions of the python bindings. >>> >>> Alternatively you can grab python 3.4 for Centos 7 from EPEL. >> >> If it is not a strict requirement, than it would be nice if cmake would >> accept thus.... >> And set something like HAVE_PYTHON3 > > Yeah, if making it optional is desired that'd be the way to go. > >> Why not drop the REQUIRED from the find_package()? > > Until there is a HAVE_PYTHON3 it should fail early. This was just a > first iteration of python 3 packages for ceph libraries, and since each > platform we test has python 3, we didn't try to make it optional. I've > no objections if you want to add that option. That is fair enough, I just found out the hard way because I do not run make-deps every time. And I have to maintain the deps list for FreeBSD manually atm. So the dependancies in the rpms has python3 as requirement, and that gets python3 available before getting to Ceph? If so I, I'll add them to the FreeBSD packages list. That'll move things forward, instead of stasis. Thanx, --WjW -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html