Re: Python 3 a blocking requirement?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Why not drop the REQUIRED from the find_package()?

--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



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux