Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: make py3 a nice-to-have #11015

Merged
merged 1 commit into from Sep 9, 2016
Merged

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Sep 8, 2016

python3 is not a hard requirement to build ceph, so make it optional.
add an option named "WITH_PY3" which accepts ON, OFF, or CHECK.

Signed-off-by: Kefu Chai kchai@redhat.com

@wjwithagen
Copy link
Contributor

@tchaikov
Just completed a testrun of head on FreeBSD with only extra my python3 patch.
And that completes all the way thru to testing. So that is good.

I'll give your commit a run for its money this afternoon.

elseif(WITH_PY3)
find_package(Python3Interp 3 REQUIRED)
find_package(Python3Libs 3 REQUIRED)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov
Why not move all this into src/pybind/CMakeLists.txt
that way everything is close together.
Visually it looks like this will work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i didn't check if other included CMakeLists.txt scripts are using the variables exposed by find_package(Python3Interp 3) and find_package(Python3Libs) or not. so not sure about this.

@wjwithagen
Copy link
Contributor

@tchaikov
LGTM
My build is pleased and completes oke.

So now I can go back and start figuring out why my OSDs are not noup-ing only to the booting state.

python3 is not a hard requirement to build ceph, so make it optional.
add an option named "WITH_PYTHON3" which accepts ON, OFF, or CHECK.

Fixes: http://tracker.ceph.com/issues/17103
Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Sep 8, 2016

@wjwithagen thanks for testing! @jdurgin what do you think?

changelog

@jdurgin
Copy link
Member

jdurgin commented Sep 8, 2016

Looks good for the cmake part of http://tracker.ceph.com/issues/17103. Thanks!

@tchaikov tchaikov merged commit 1b163c8 into ceph:master Sep 9, 2016
@tchaikov tchaikov deleted the wip-optional-py3 branch September 9, 2016 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants