Skip to content

Add ENABLE_PYTHON3 to the conditional that triggers building bindings#368

Merged
mlschroe merged 1 commit intoopenSUSE:masterfrom
dralley:bindings-fix
Feb 13, 2020
Merged

Add ENABLE_PYTHON3 to the conditional that triggers building bindings#368
mlschroe merged 1 commit intoopenSUSE:masterfrom
dralley:bindings-fix

Conversation

@dralley
Copy link
Copy Markdown
Contributor

@dralley dralley commented Feb 12, 2020

No description provided.

@dralley
Copy link
Copy Markdown
Contributor Author

dralley commented Feb 13, 2020

@mlschroe
Copy link
Copy Markdown
Member

No objections, but note that you should only use ENABLE_PYTHON3 if you plan to build both the python2 and the python3 bindings.

@mlschroe
Copy link
Copy Markdown
Member

(That's also why the ENABLE_PYTHON3 option was hidden, it's not meant to be used if you're building for just one python version.)

@dralley
Copy link
Copy Markdown
Contributor Author

dralley commented Feb 13, 2020

Thanks for the info, I wasn't aware of that. Do you think that still makes sense now that Python 2 is EOL?

@mlschroe
Copy link
Copy Markdown
Member

I'm fine with adding ENABLE_PYTHON3 to that "if" statement, but I'd prefer to keep ENABLE_PYTHON3 somewhat hidden by not announcing it in an OPTION statement.

ENABLE_PYTHON3 is used in the CMakeLists.txt in the bindings
directory but if it's defined alone it won't trigger building the
bindings.
@mlschroe mlschroe merged commit 30e95f4 into openSUSE:master Feb 13, 2020
@mlschroe
Copy link
Copy Markdown
Member

Thanks!

@dralley dralley deleted the bindings-fix branch February 13, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants