Require new PyBindGen; make it work for Python 2.3.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 22 Jul 2008 16:54:24 +0100
changeset 3473 6bce86ea4778
parent 3472 190ce8107098
child 3474 dac9146297c8
Require new PyBindGen; make it work for Python 2.3.
bindings/python/ns3modulegen.py
bindings/python/ns3modulegen_core_customizations.py
bindings/python/wscript
--- a/bindings/python/ns3modulegen.py	Mon Jul 21 15:53:03 2008 -0700
+++ b/bindings/python/ns3modulegen.py	Tue Jul 22 16:54:24 2008 +0100
@@ -12,7 +12,7 @@
 from pybindgen.module import MultiSectionFactory
 import pybindgen.settings
 
-from ns3modulegen_generated import (module_init, register_types, register_methods, register_functions)
+from ns3modulegen_generated import module_init, register_types, register_methods, register_functions
 import ns3modulegen_core_customizations
 import callbacks_list
 
--- a/bindings/python/ns3modulegen_core_customizations.py	Mon Jul 21 15:53:03 2008 -0700
+++ b/bindings/python/ns3modulegen_core_customizations.py	Tue Jul 22 16:54:24 2008 +0100
@@ -1,7 +1,7 @@
 import re
 
 from pybindgen.typehandlers import base as typehandlers
-from pybindgen import (ReturnValue, Parameter)
+from pybindgen import ReturnValue, Parameter
 from pybindgen.cppmethod import CustomCppMethodWrapper, CustomCppConstructorWrapper
 from pybindgen.typehandlers.codesink import MemoryCodeSink
 from pybindgen.typehandlers import ctypeparser
--- a/bindings/python/wscript	Mon Jul 21 15:53:03 2008 -0700
+++ b/bindings/python/wscript	Tue Jul 22 16:54:24 2008 +0100
@@ -21,7 +21,7 @@
     os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
 
 ## https://launchpad.net/pybindgen/
-REQUIRED_PYBINDGEN_VERSION = (0, 8, 0, 511)
+REQUIRED_PYBINDGEN_VERSION = (0, 8, 0, 515)
 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
 
 
@@ -93,7 +93,7 @@
     ## Check for Python
     try:
         conf.check_tool('python')
-        conf.check_python_version((2,4,2))
+        conf.check_python_version((2,3))
         conf.check_python_headers()
     except Configure.ConfigurationError:
         return