Gustavo J. A. M. Carneiro
4d9648f624
Add code that, when waf is updated in a future version, makes sure python bindings are re-generated whenever the optional features set changes.
2009-04-06 13:05:59 +01:00
Gustavo J. A. M. Carneiro
8e31bf0795
Check if the compiler *really* supports -fvisibility=hidden.
2009-03-04 11:34:51 +00:00
Gustavo J. A. M. Carneiro
9fb91e510b
Compile python bindings with -fvisibility=hidden, when possible. Closes #515 .
2009-03-03 18:51:16 +00:00
Gustavo J. A. M. Carneiro
f4fbfd63c8
Python: wrap std::ostream/ofstream, for ascii tracing.
2009-02-18 12:23:08 +00:00
Gustavo J. A. M. Carneiro
e26b98d2c1
Try to guess pybindgen location (more #478 )
2009-01-24 15:28:54 +00:00
Gustavo J. A. M. Carneiro
d94b17b0d3
On native win32, we cannot use -D_DEBUG when compiling Python extensions
2009-01-17 16:58:42 +00:00
Gustavo J. A. M. Carneiro
4057d88dc6
Remove the last remnants of local pybindgen handling (allinone takes care of pybindgen now)
2009-01-16 17:18:49 +00:00
Gustavo J. A. M. Carneiro
0c2dd0b1f2
Add dependency annotations for the task that generates Python bindings
2009-01-14 11:17:41 +00:00
Gustavo J. A. M. Carneiro
a7fc8ded5c
Bug 467: waf configure enables python after detecting pybindgen is missing
2009-01-12 18:45:03 +00:00
Gustavo J. A. M. Carneiro
071f0584f6
Don't build or fetch NSC/pybindgen, those tasks are now moved to ns-3-allinone
2009-01-11 23:26:34 +00:00
Gustavo J. A. M. Carneiro
5ebda7502f
Upgrade WAF; fix Darwin (OSX) build problems.
2009-01-11 17:51:20 +00:00
Gustavo J. A. M. Carneiro
e65cee5259
correct dependency problem
2008-12-31 11:15:45 +00:00
Gustavo J. A. M. Carneiro
c8167f1e94
Convert warning to Logs.warn (waf api change)
2008-12-29 16:54:53 +00:00
Gustavo J. A. M. Carneiro
f979ad425c
Fix --python-scan
2008-12-29 15:48:34 +00:00
Gustavo J. A. M. Carneiro
b576592431
Upgrade to new WAF, work in progress
2008-12-29 13:28:54 +00:00
Gustavo J. A. M. Carneiro
8664f09c22
Fix nsc/python-scan task descriptions
2008-12-04 11:34:01 +00:00
Gustavo J. A. M. Carneiro
beb8e003f7
Bug 289: CommandLine::AddValue is not wrapped
2008-11-26 12:11:11 +00:00
Gustavo J. A. M. Carneiro
607690fa92
Work around #define ECHO in a system header file included by Python.h on Mac OS X (bug #413 )
2008-11-24 12:39:50 +00:00
Gustavo J. A. M. Carneiro
38019a5405
fix --with-pybindgen path handling bug
2008-11-19 18:23:22 +00:00
Gustavo J. A. M. Carneiro
052cc1c658
Add a --with-pybindgen option, to allow external pybindgen to be used instead of fetching it from the network
2008-11-19 17:32:37 +00:00
Gustavo J. A. M. Carneiro
f975eec706
Fix build of Python bindings with Python 2.6
2008-11-18 15:12:12 +00:00
Gustavo J. A. M. Carneiro
36bc92acc9
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
...
This commit will change a lot the scanned API definitions, once, but should allow much more stable scanning in the future, as right now only types were being sorted, but free functions can jump up or down when different people on different machines scan the API. Well, no more will that happen in the future, I hope.
2008-11-08 15:00:28 +00:00
Gustavo J. A. M. Carneiro
e5d74b98d1
Work around a WAF bug in failing to recognize GCC while detecting CXXFLAGS for compiling Python extensions.
2008-10-31 22:47:29 +00:00
Gustavo J. A. M. Carneiro
c17d75a8f6
Python: enable wrapping of the packet metadata APIs.
2008-10-15 18:32:07 +01:00
Gustavo J. A. M. Carneiro
425947922a
Upgrade to pybindgen rev. 598, to fix bug #291 .
2008-10-12 14:40:26 +01:00
Gustavo J. A. M. Carneiro
acd8745e77
Fix compat. with Python < 2.5 (fixes ns-old regression failure)
2008-10-07 12:23:57 +01:00
Gustavo J. A. M. Carneiro
92cd268755
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
2008-10-06 17:39:35 +01:00
Gustavo J. A. M. Carneiro
52a690f14a
Pull pybindgen revno 582 for increased stability of the generated python files with multiple developers doing the scanning.
2008-10-02 17:30:38 +01:00
Gustavo J. A. M. Carneiro
9c6e2d78ad
Exit WAF after processing --python-scan to avoid incorrect builds, since WAF does not handle well files being generated into the source dir instead of the build dir
2008-10-02 17:15:09 +01:00
Gustavo J. A. M. Carneiro
607487607a
Get newer pybindgen, for stl containers support
2008-09-27 15:26:27 +01:00
Gustavo J. A. M. Carneiro
41ffc40f0b
Allow interrupting PyBindGen fetching, via Ctrl-C, for the impatient developers.
2008-09-27 15:06:38 +01:00
Gustavo J. A. M. Carneiro
538dfb303b
Problem of Python bindings in MinGW has been fixed
2008-09-09 12:13:23 +01:00
Gustavo J. A. M. Carneiro
7dcaa0b651
Python bindings generation does not need to depend on the 'everything.h' file, only API scanning and compilation of the generated sources.
2008-09-08 11:20:17 +01:00
Gustavo J. A. M. Carneiro
a37d7f920f
Use the information provided by conf.report_optional_feature() to enable/disable python bindings for optional APIs
2008-09-06 19:24:32 +01:00
Gustavo J. A. M. Carneiro
869e918573
For better consistency, option --nsc becomes --enable-nsc, --python-disable becomes --disable-python.
2008-09-06 14:46:01 +01:00
Gustavo J. A. M. Carneiro
c9204c386f
Add a summary of optional features at the end of the configuration stage.
2008-09-05 18:16:29 +01:00
Gustavo J. A. M. Carneiro
abc71c2da5
New pybindgen, should fix bug #308 .
2008-09-05 16:47:15 +01:00
Gustavo J. A. M. Carneiro
834aa053eb
Disable Python support on the CygWin platform, at least until/if the problems are fixed.
2008-09-04 18:45:21 +01:00
Gustavo J. A. M. Carneiro
42b6b7f2a3
Update PyBindGen, fixes compilation with python 2.4.
2008-09-04 14:15:32 +01:00
Gustavo J. A. M. Carneiro
282a4d9c8c
Fix build when ns3_module_*__local.py files are used.
...
--HG--
extra : transplant_source : %CD%FAY7%0C%8Fl%98%25%0D%02%5C%A0MG%8F%F3%10%00N
2008-09-03 17:42:28 +01:00
Gustavo J. A. M. Carneiro
ccfbdb0575
Fix compilation of Python bindings when libsqlite3 is not available (and so the class SqliteDataOutput is omitted).
2008-09-02 17:32:19 +01:00
Gustavo J. A. M. Carneiro
0479738e6d
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
2008-09-02 11:12:42 +01:00
Gustavo J. A. M. Carneiro
d207d172da
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
2008-08-29 14:56:24 +01:00
Gustavo J. A. M. Carneiro
e0d4eb7e45
Pull in Mathieu's PyBindGen fix.
2008-08-26 22:20:30 +01:00
Gustavo J. A. M. Carneiro
b816aebc68
New PyBindGen, fixes python wrapper identity issue.
2008-08-23 22:35:10 +01:00
Gustavo J. A. M. Carneiro
2f01408db6
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
2008-08-19 17:48:09 +01:00
Gustavo J. A. M. Carneiro
17f113e82a
New pybindgen version, fixes a couple of bugs caught by regression testing.
2008-08-19 12:53:44 +01:00
Gustavo J. A. M. Carneiro
7a8337e201
Don't scan python bindings until the everything.h file to be scanned is generated. Closes #288 .
2008-08-18 23:04:49 +01:00
Gustavo J. A. M. Carneiro
df255302f5
New PyBindGen version needed.
2008-08-18 16:03:31 +01:00
Gustavo J. A. M. Carneiro
c6795fea8b
Python: re-scan API; unblock python threads during Simulator::Run; new pybindgen brings improved thread safety for virtual methods.
2008-08-05 19:42:53 +01:00