-
Notifications
You must be signed in to change notification settings - Fork 345
Feat/Python3 Update #2935
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
base: master
Are you sure you want to change the base?
Feat/Python3 Update #2935
Conversation
The include order needed to be adjusted some cases, s.t. specific Python headers were included before QT headers, as both have `slots` defined that conflict with each other.
In the same way the linking of appleseed.python2 and appleseed.studio is done.
via preprocessor instructions TODO: remove debugging pragmas for pull request.
Wrong assertion.
And removed added files.
Added OpenEXR_ROOT to OCIO cmake command. Else it causes problems on on Ubuntu 24.04.
Python3 update /w geckguy branch into "default" Feat/python3 update branch.
| WITH_TOOLS=ON | ||
| WITH_PYTHON2_BINDINGS=ON | ||
| WITH_PYTHON3_BINDINGS=OFF | ||
| WITH_PYTHON2_BINDINGS=OFF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does appleseed even support the Python2 bindings now? If not, the option should be completely removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appleseed should still build and work with Python 2 Bindings as before.
With the preprocessor I check
#if PY_MAJOR_VERSION == 2
// Python 2 Compatible Code
#endif#if PY_MAJOR_VERSION == 3
// Python 3 Compatible Code
#endifAnd in cmake I check for either WITH_PYTHON2_BINDINGS and WITH_PYTHON3_BINDINGS respectively.
I've tested this on Ubuntu 22 (where Python 2 is still supported).
So the bindings can still support Python 2. The Python scripts however only support Python 3.
|
Thanks for taking this forward! @4134N4 |
Updated Appleseed to build with Python 3. Namely, Appleseed now builds with Python 3 with
(and
WITH_PYTHON2_BINDINGS=OFF).This PR also includes the commits of @geckguy in PR "Updated all the python files to Python3" #2924
It was tested (CLI unit tests and
runtestsuite.py) on Ubuntu 22.04 (for Python 3.10 and Python 2.7 -- checking if Python 2 bindings still worked) and on Ubuntu 24.04 (for Python 3.12).