Commit Graph
913 Commits
Author SHA1 Message Date
Gustavo Carneiro b85e2497c4 Missing a typecase in the python2 code version 2013-08-04 20:14:57 +01:00
Gustavo Carneiro 593795111d merge from trunk 2013-07-31 22:48:07 +01:00
Gustavo Carneiro 5aae13b55a make it work on python 3 (except that sq_slice and sq_ass_slice are gone in Python 3) 2013-07-31 22:40:27 +01:00
Gustavo Carneiro 0dadf0a85b On second thought, remove the UInt8PtrReturn, as it doesn't seem to even compile 2013-07-28 13:13:57 +01:00
Gustavo Carneiro c00fd6d917 Copy some type handlers from lp:~dan-eicher/pybindgen/py3k 2013-07-28 12:20:46 +01:00
Gustavo Carneiro 6ab20e6d03 Merge from trunk 2013-07-27 19:45:53 +01:00
Gustavo Carneiro f8943e6719 Make it work on Python 3, except gccxml, which has not been tested 2013-07-27 17:18:06 +01:00
Gustavo Carneiro cabd8ab4c8 Tweak the figures and add them to version control, so that readthedocs can include them 2013-07-23 11:22:29 +01:00
Gustavo Carneiro 2bc0b9e01f Update README 2013-07-20 18:31:08 +01:00
Gustavo Carneiro c0c83bfb82 For convenience, add a setup.py 2013-07-20 18:17:04 +01:00
Gustavo Carneiro 1e088a22e2 Tolerate missing version 2013-07-20 16:13:48 +01:00
Gustavo Carneiro 32647ed695 Tolerate import version failing 2013-07-20 16:04:04 +01:00
Gustavo Carneiro f4b50afda6 Fix a compilation warning in the unit tests 2013-02-21 18:56:30 +00:00
Gustavo Carneiro 72e322b10f Indent with spaces, not tabs. 2012-12-16 21:09:00 +00:00
Gustavo Carneiro ffbe3a7a39 Merge lp:~mikeowen/pybindgen/pybindgen-containers, minus cross_module_inheritance. 2012-12-16 17:38:38 +00:00
Gustavo Carneiro 729cdedce4 Remove Mike's cross_module_inheritance example, there is a better way. 2012-12-16 17:36:59 +00:00
Gustavo Carneiro 647888c064 Add a cross-module import example 2012-12-15 19:20:17 +00:00
Mike Owen 782aced20b Adding a unit test of cppclass.add_custom_instance_attribute. I think
this completes tests of all our new features for pybindgen in this
branch.
2012-12-11 22:42:19 -08:00
Mike Owen d937627c70 1. Putting in logic to only build the boost::shared_ptr test when
the shared_ptr header is available.

2.  The type narrowing using cxxabi in cppclass.py isn't correct with
    clang, so adding a #if checks to exclude it in that case.
2012-12-11 22:10:45 -08:00
Mike Owen 8fe7c68b7f Testing shows we forgot to keep the cppcustomattribute import in cppclass. 2012-12-11 16:47:36 -08:00
Mike Owen cd928374b0 The cross module inheritance example is now working. Aside from my figuring out waf, there
are two key things that were necessary:

1.  We have to turn off the -fvisibility=hidden flag, since this hides the symbols in our
    shared libraries from others.  There's probably a better way to handle this, but this
    is expedient for now.

2.  Since I'm testing with GNU compilers & linkers, I have to use the magic lines in python
    before importing the inter-dependent modules (see test_cross_module_inheritance.py):

    import sys, ctypes
    sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)

    This shouldn't be necessary on all platforms.
2012-12-11 16:01:44 -08:00
Mike Owen 8b334800da Working on getting the darn cross module thing to compile with waf. We're almost there, but I think we
need to figure how to tell it to link to A.
2012-12-11 10:58:01 -08:00
Mike Owen 37dcfcb514 Adding the beginnings of an example for cross module inheritance. Not
building yet 'cause I don't  understand waf.  Why does every project I
look at use a different build system!
2012-12-10 23:26:25 -08:00
Mike Owen 2560c98f5e 1. Debugged some of our new sequence methods and expanded on the error reporting a bit.
2.  Commenting out the automatic tp_hash method for now since it's not quite right.  We have to 
    go back and see why Riyaz originally reinstated that thing.

3.  Expanded the pybindgen unit tests of "VectorLike" to include all the new container slots.
2012-12-10 16:39:14 -08:00
Mike Owen 47a8ab2c1e Adding exception setting to our error conditions in the container
methods.
2012-12-09 23:40:17 -08:00
Mike Owen ca849e25d7 Initial merge of the latest pybindgen (0.16) with our extensions for containers. 2012-12-09 14:38:49 -08:00
Gustavo J. A. M. Carneiro 4852c1bc65 Merge Dan Eicher's py3k branch 2012-09-04 11:54:34 +01:00
Gustavo J. A. M. Carneiro 3b5e055dae Add a boost::shared_ptr<> example 2012-08-25 12:52:28 +01:00
Gustavo J. A. M. Carneiro a17ce14a6e More boost::shared_ptr tests/fixes, seems stable now. 2012-08-24 19:11:24 +01:00
Gustavo J. A. M. Carneiro 4f64044480 Fix minor bug in size_t return type handler 2012-08-24 16:05:38 +01:00
Gustavo J. A. M. Carneiro 33f9f727fe Initial support for boost::shared_ptr-wrapped classes 2012-08-23 19:00:57 +01:00
Gustavo J. A. M. Carneiro d5c2ec49cb Fix PYTHONPATH for unit tests 2012-08-20 18:05:10 +01:00
Gustavo J. A. M. Carneiro a4ab786a63 Don't use deprecated bzrlib API (revision_history) 2012-08-20 17:49:25 +01:00
Gustavo J. A. M. Carneiro efcf8e22e2 ignore *.pstat files from waf dist 0.16.0 2012-08-20 16:35:53 +01:00
Gustavo J. A. M. Carneiro 809f01ba6d Fix waf dist to work with waf 1.6.11 2012-08-20 16:33:13 +01:00
Gustavo J. A. M. Carneiro 9429bd5eab Update NEWS 2012-08-20 16:00:49 +01:00
Gustavo J. A. M. Carneiro d4ef7e90cf Add uint16_t* type handler 2012-07-11 15:49:11 +01:00
Gustavo J. A. M. Carneiro 7bc52d9c0c Allow a virtual method returning Class* with caller_owns_return=True, even when the class is not copyable, by stealing the original pointer. 2012-06-18 15:15:09 +01:00
Michael Brown 692698b0a7 Glib::ustring mapping fails with non ascii-7 characters 2012-06-02 12:25:13 +01:00
Gustavo J. A. M. Carneiro f9d39f961a Handle default_value in py2c of containers 2012-05-15 15:46:03 +01:00
Gustavo J. A. M. Carneiro c3f5dd8aae Trying, in vain, to reproduce bug #798383... 2012-05-04 18:31:31 +01:00
Gustavo J. A. M. Carneiro 003d69124e Don't unit-test Glib:: types, as it requires special headers 2012-05-04 16:18:01 +01:00
Michael Brown ec47024455 Add support for Glib::ustring 2012-05-04 16:17:27 +01:00
Gustavo J. A. M. Carneiro 7fcb02087b Fix waf --generate-version bug since waf upgrade 2012-03-23 10:53:53 +00:00
dan-eicher 98e97835c7 CppClass.mangle() error 2012-03-18 22:31:53 +00:00
Gustavo J. A. M. Carneiro 2ae14a0852 Generation bug: local variables conflict with wrapper parameters 2012-03-18 22:28:23 +00:00
Gustavo J. A. M. Carneiro 7af8548ed5 Remove the note about the custom WAF 2012-03-18 22:10:32 +00:00
Gustavo J. A. M. Carneiro a8797ed2ae pybindgen.settings.deprecated_virtuals default value changed to False 2012-03-18 22:01:23 +00:00
Gustavo J. A. M. Carneiro 4737c636bf Make the examples build with the new WAF 2012-03-18 21:54:36 +00:00
Gustavo J. A. M. Carneiro 07146e80ae Upgrade to WAF 1.6.11; building examples temporarily broken... 2012-03-18 18:50:39 +00:00