Experimental option to build blender as a python module, rather then blender embeddin...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 20 Feb 2011 23:39:29 +0000 (23:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 20 Feb 2011 23:39:29 +0000 (23:39 +0000)
commitc30149991c9417106577e2d96112b16433910215
tree9b686c141ddf2c9346ebe0beb3b3cfc3aaacf73f
parent55a0e21a03e88e5489dd6f53a91b6f3a6f770d9a
Experimental option to build blender as a python module, rather then blender embedding python.
CMake build option WITH_PYTHON_MODULE, will build ./bin/bpy.so

This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg:
   python -c "import bpy ; bpy.ops.render.render(write_still=True)"

This runs in background mode and has similar restrictions to running a script:
   blender --background --python test.py

TODO:
 - install to site-packages with blender scripts
 - add support for imp.reload()
CMakeLists.txt
build_files/cmake/macros.cmake
source/blender/editors/render/render_internal.c
source/blender/python/intern/CMakeLists.txt
source/blender/python/intern/bpy.c
source/blender/python/intern/bpy.h
source/blender/python/intern/bpy_interface.c
source/creator/CMakeLists.txt
source/creator/creator.c