Alex Willmer
c82390941d
Allow Python interpreter to be specified during build
...
This allows the library to be built and tested with a non-default
version of CPython, e.g.
scons bindings=python python=python3.6
scons bindings=python python=python3.6 testpython
2019-05-10 21:59:03 +01:00
Alex Willmer
0f3cadcc3e
Enable absolute imports, true division, & print()
...
These have no effect in Python 3.x, they are the default. Enabling them
in Python 2.x, enabling them in Python 2.x allows single source
compatiblity.
2019-05-10 21:13:32 +01:00
Meredith L. Patterson
0ee77d776f
make dotnet tests run for 'test' target
2014-01-05 01:57:19 +01:00
Dan Hirsch
2f3bc9c4b0
Perl tests are now part of the build system
2013-12-05 08:41:28 +01:00
Meredith L. Patterson
79f498cdab
python bindings install target works. libhammer.so must be on LD_LIBRARY_PATH.
2013-11-26 19:54:09 -08:00
Meredith L. Patterson
20bf8c4b79
distutils and working tests!
2013-11-26 19:25:41 -08:00
Meredith L. Patterson
53bc886e2f
distutils being invoked from scons; ld is failing with 'libhammer.a: archive has no index, run ranlib to add one'
2013-11-26 19:09:27 -08:00
Meredith L. Patterson
1e7553d3df
build//src/bindings/python/hammer_tests.py still hangs around but everything else is cleaned up.
2013-11-26 15:40:15 -08:00
Meredith L. Patterson
f21954eecd
everything's working for new-build except Clean()
2013-11-26 15:29:28 -08:00
Dan Hirsch
294bca3fce
Cleaned up python bindings interface a bit; now returns strings rather than character codes if appropriate
2013-11-23 19:53:58 -06:00
Meredith L. Patterson
8b6d6084c5
fixed the segfault! hand-initialized HParser needed PB_MIN set.
2013-11-23 13:36:54 -06:00
Meredith L. Patterson
12bb5cac36
more verbose tests; should run w/o hammer installed system-wide
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
96760f1daf
kindasorta working. all tests (except h_action and h_attr_bool, need typemaps) have passed at one time or another, but some segfault at not-quite-random; h_and, h_epsilon_p, h_end_p, h_ignore, h_not, maybe h_choice seem culprity.
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
073d6d8a27
python tests baked into scons; h_ch needs the first char of its input string as its input
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
4bd2fc9e72
sync with php-bindings SConscript
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
27f94dbe61
helps to link against the library...
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
77d48e2b7c
SWIG python bindings, has same typemap problem as PHP
2013-11-23 13:33:24 -06:00