Yep, something to report, I’m going to need to do some basic research to find out why the python version was different on mac and Unix. it’s likely an availability thing or even a python ability thing (as in necessary components may have been deprecated or removed in later versions)
here’s what I’m looking at where it mentions different versions:
For alternate Python locations the commandline can be used to override detected/default cache settings, e.g:
On Unix:
cmake -D PYTHON_LIB=/usr/local/lib/python2.3/config/libpython2.3.so -D PYTHON_INC=/usr/local/include/python2.3 -D PYTHON_BINARY=/usr/local/bin/python2.3 -G “Unix Makefiles” …/blender
On Macs:
cmake -D PYTHON_INC=/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -D PYTHON_LIBPATH=/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config -D PYTHON_BINARY=/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 -G Xcode …/blender
When changing any of this remember to update the notes in doc/blender-cmake.txt
I’d like to include python 2.7 for every operating system, so yes Linux, Unix, Mac and Windows would be included, and other operating systems can install it via compiling the source code with the right python version.
However from that little code snippet there, it looks like 2.49b used several different python versions based on the OS that installed it. Windows and Linux used python 2.6.2, Mac used python 2.5, and Unix used python 2.3.
now I must go research why. to do this research will be simple. for Unix and Mac I know they have a habit of creating their own standard version of things and only allowing those to be installed. so it may very well be likely that at the time 2.49b was made Unix and Mac did not have an official python 2.6.2 so an older version had to be used. If that was the case, then the question now is simply, is python 2.7 available for them now? and that’s a simple look up online.
This is just the tip of the iceberg though.
Nope! looks like the Windows and Linux Python versions are actually set to 2.5 in the source-code! no wonder blender has trouble finding python without a system environment variable PYTHONPATH being set.
they even #commented python 2.6 in one of the source .py files, now things get confusing! “Why?! and does this apply to python 2.7 as well?”
python-dev-guide.txt seems to have some reference. seems there are “previous” and “current” python versions being given references in the source.