FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: Python 2.6  (Read 3002 times)

Nihathrael

  • Developer
  • Newbie
  • *
  • Posts: 7
    • View Profile
Python 2.6
« on: November 20, 2008, 11:14:58 am »

Evening all,
Since ArchLinux recently updated python to version 2.6 i also updated. Resulting in a not compiling FIFE ;) So here's the patch to make it work again. Big Question would be on when to make the big switch for FIFE officially?

Please note:
It might be necessary to also change some things in the windows config-dist.py, i haven't looked into that, as i do not run windows here and am not able to test the changes.

So long,
Nihathrael

Patch:
Code: [Select]
Index: build/linux2-config-dist.py
===================================================================
--- build/linux2-config-dist.py (revision 2677)
+++ build/linux2-config-dist.py (working copy)
@@ -6,13 +6,13 @@
  context.env.Replace(LIBPATH = ['/opt/lib', '%s/ext/install/lib' % context.env['SCONS_ROOT_PATH']])
  context.env.Append(CPPPATH = ['/opt/include',
                                '/usr/include/vorbis',
-                               '/usr/include/python2.5',
+                               '/usr/include/python2.6',
                                '%s/ext/install/include' % context.env['SCONS_ROOT_PATH']])
  context.env.Append(CPPPATH = [])
 
  context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h')
  context.checkSimpleLib(['openal_soft'], 'AL/al.h')
- context.checkSimpleLib(['python', 'python2.5'], ['python2.5/Python.h'])
+ context.checkSimpleLib(['python', 'python2.6'], ['python2.6/Python.h'])
  context.checkSimpleLib(['SDL'], 'SDL.h')
  context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h')
  context.checkSimpleLib(['SDL_image'], 'SDL_image.h')
Index: engine/SConscript
===================================================================
--- engine/SConscript (revision 2677)
+++ engine/SConscript (working copy)
@@ -281,7 +281,7 @@
  interfacefiles.append(f)
 
 swig = env.SwigWrappers('swigwrappers/python/fife', interfacefiles)
-env.Install('$PREFIX/lib/python2.5/site-packages/fife', ['swigwrappers/python/fife.py'])
+env.Install('$PREFIX/lib/python2.6/site-packages/fife', ['swigwrappers/python/fife.py'])
 
 allfiles = list(enginepath.walkfiles())
 headerfiles = [f for f in allfiles if is_headerfile(f)]
@@ -310,5 +310,5 @@
  if sys.platform != 'win32':
  env.Command('swigwrappers/%s/_fife.so' % env['script'], flib, [Copy('$TARGET', '$SOURCE')])
  if sys.platform != 'darwin':
- env.Install('$PREFIX/lib/python2.5/site-packages/fife', flib)
-# env.Install('$PREFIX/lib/python2.5/site-packages/fife', [str(f) for f in extensionfiles])
+ env.Install('$PREFIX/lib/python2.6/site-packages/fife', flib)
+# env.Install('$PREFIX/lib/python2.6/site-packages/fife', [str(f) for f in extensionfiles])
« Last Edit: November 20, 2008, 11:31:40 am by Nihathrael »
Logged