Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-07-21 14:13:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-21 14:13:20 +0400
commit8c9ade81e8a916521fbfb110aade7627131f3610 (patch)
treeea67c2396fd27d66c6d768cc8b4032382d01949a /config
parent5cd5e851434fa9de941a830874b0e47468e09afa (diff)
Make linux/scons default to python 3.1 rather then the version scons runs with.
for a while py2.x will work but eventually be dropped when most OS's support it, so Id recommend upgrading. The following instructions are only needed if you don't use python3.1 installed in the default location. For releases users wont have to worry about this. # in python3.1 source dir, build and install into your own dir, /opt/py31 is just an example. ./configure --prefix="/opt/py31"; make; make install # In the scons user-config.py... BF_PYTHON = "/opt/py31" # ... now build ... # # Blender now needs 2 things to run. ./lib/libpython3.1.so and the python modules. # Symlink (or copy) python modules, blender sets this path for modules on startup if it is found. ln -s /opt/py31/lib/python3.1 ~/.blender/python # Currently static linking is not working without hacks because of limitations in scons. # for releases we can workaround, but for now its easier to set an environment variable. # To start blender so it can find libpython3.1.so make this into a shell script to save yourself typing it in all the time. export LD_LIBRARY_PATH="/opt/py31/lib/" ./blender
Diffstat (limited to 'config')
-rw-r--r--config/linux2-config.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/config/linux2-config.py b/config/linux2-config.py
index 86de10c8fb3..b6a1eeb2c44 100644
--- a/config/linux2-config.py
+++ b/config/linux2-config.py
@@ -1,17 +1,9 @@
LCGDIR = '../lib/linux2'
LIBDIR = "${LCGDIR}"
-def py_version_string():
- '''
- returns py version - "2.5", "2.6" etc
- '''
- import platform
- ver = platform.python_version_tuple()
- return '%d.%d' % (int(ver[0]), int(ver[1])) # py2.5 uses strings, 2.6 ints
-
BF_PYTHON = '/usr'
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
-BF_PYTHON_VERSION = py_version_string()
+BF_PYTHON_VERSION = '3.1'
WITH_BF_STATICPYTHON = False
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'