Fix SCons build on Fedora where Python is compiled with --wide-char ABI #30039

Closed
opened 2012-01-31 22:42:30 +01:00 by anatoly techtonik · 11 comments

%%%Without this patch, Blender fails to build on Fedora with SCons:

...
Using config file: build_files/scons/config/linux-config.py
user-config.py not found, no user overrides
Build with parallel jobs: 1
Build with debug symbols: False

Missing: "/usr/include/python3.2m/Python.h",

Set 'BF_PYTHON_INC' to point to a valid python include path.
Containing Python.h for python version "3.2"

%%%

%%%Without this patch, Blender fails to build on Fedora with SCons: ... Using config file: build_files/scons/config/linux-config.py user-config.py not found, no user overrides Build with parallel jobs: 1 Build with debug symbols: False Missing: "/usr/include/python3.2m/Python.h", ``` Set 'BF_PYTHON_INC' to point to a valid python include path. Containing Python.h for python version "3.2" ``` %%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%At first glance, it looked like the python library suffix was not being set. Closer inspection reveals some fall-thru logic. It wold be nice if this was more explicit.%%%

%%%At first glance, it looked like the python library suffix was not being set. Closer inspection reveals some fall-thru logic. It wold be nice if this was more explicit.%%%

%%%Made it more explicit - http://codereview.appspot.com/5610047/%%%

%%%Made it more explicit - http://codereview.appspot.com/5610047/%%%

%%%The latest version is also attached.%%%

%%%The latest version is also attached.%%%

%%%It appeared that previous version didn't work, because there is no shell-like environment expansion in .py files.%%%

%%%It appeared that previous version didn't work, because there is no shell-like environment expansion in .py files.%%%
Member

%%%Stivs assigning to you since Jesty has no blender time lately... %%%

%%%Stivs assigning to you since Jesty has no blender time lately... %%%

%%%I've run into http://bugs.python.org/issue14049 and although it is closed, there doesn't seem to be a valid reason for closing the ticket. So, this should hang a little.%%%

%%%I've run into http://bugs.python.org/issue14049 and although it is closed, there doesn't seem to be a valid reason for closing the ticket. So, this should hang a little.%%%

%%%Fixed in r43992.%%%

%%%Fixed in r43992.%%%

%%%Revision 43992 ? Linkin test.%%%

%%%Revision 43992 ? Linkin test.%%%

%%%http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43992

Ticker can be closed now. Works on Fedora 16 too.%%%

%%%http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43992 Ticker can be closed now. Works on Fedora 16 too.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#30039
No description provided.