autowrap
autowrap copied to clipboard
Generates Python Extension modules from Cythons PXD files
As requested in https://github.com/OpenMS/OpenMS/pull/5563
Preserves the old PyClass instances and their memory and allocates the difference to the new size. Also removes one copy, since it copies the data directly to the memory addresses...
Hi Uwe, if we wrap a function: ``` void addTags(libcpp_utf8_string key, libcpp_vector[libcpp_utf8_string] tags) nogil except + following works: p.addTags(k, [b"", b"c"]) but: p.addTags(k, ["", "c"]) fails ``` ``` File "/home/sachsenb/miniconda3/lib/python3.8/site-packages/nose/case.py",...
I think this also happened a few times E.g. wrapping static functions as non-static ones doesn't cause an error. Wrapped objects just don't work
I have the following code: `IteratorWrapper[(libcpp_set[ DataProcessingSoftware].iterator)] software_ref` which leads to autowrap crashing since AttributeNodes are not handled in PXDParser _extract_type. I've tried to make changes to the handler (adding...
[autowrap 0.6.1] instanced templated typedefs and "wrap-instance"-ed types can have name collisions
Tested with commit d0e9a5 (Feb 9, 2015). In some cases, a C++ header may define a typedef to a specific instantiation of a templated class, but it seems to be...
Tested with commit d0e9a5 (Feb 9, 2015). Usage of "const" causes autowrap to raise an exception. Test code: ``` cdef extern from "" namespace "std": cdef cppclass string: string() const...
https://github.com/OpenMS/autowrap/blame/35eb3ab6154b7c87337f886dec318a980cd4b431/autowrap/PXDParser.py#L119 This breaks a lot of places where we have comments ending in colons that have no syntactic meaning. It also lacks any error reporting as to which PXD failed...
This requires a change in conversion providers. +Some other cleanups.
Just annotate a certain C++ in the pxd function to use as "wrap-as-str" and implement 10 lines of code generation. Using