Commit Graph

16 Commits

Author SHA1 Message Date
Daniel Grunwald fffcf57834 Add support for __len__ special method. 2016-04-17 23:26:33 +02:00
Daniel Grunwald 309182cfe8 py_class!: Add support for "def __new__(cls)". 2016-03-12 00:06:39 +01:00
Daniel Grunwald 7269dc64c2 python*-sys: use #![no_std] 2016-01-22 20:38:34 +01:00
Daniel Grunwald e8a69d9431 Remove unused pkg_config dependency from python27-sys 2015-12-20 13:57:26 +01:00
Daniel Grunwald d33a4b68fc Add test script that all symbols imported by python-sys are exported from the python .so 2015-09-20 22:21:18 +02:00
Daniel Grunwald 93b522404e python27-sys: Add struct definitions for PyCodeObject and PyFrameObject.
Closes #21.
2015-09-19 16:10:15 +02:00
Daniel Grunwald a0cda1a66b python27-sys: compile.h 2015-09-19 13:56:50 +02:00
Daniel Grunwald a469635eca python27-sys: add missing object types 2015-07-18 13:40:26 +02:00
Daniel Grunwald 73e4ce3f8b #11: Allow defining python extension types
Highly incomplete initial version.
2015-05-27 21:19:32 +02:00
Daniel Grunwald 461255f3fa Merge branch 'master' of https://github.com/novocaine/rust-cpython 2015-05-17 20:47:48 +02:00
Daniel Grunwald 427cdf09f8 Fix building python27-sys without Py_USING_UNICODE. 2015-05-17 18:38:35 +02:00
James Salter b3e20e900b fix issues in bb13ec, support utf16, python fom PATH
* fix ucs4 build broken by bb13ec
* add utf16 decoding to unicode.from_py_object for
  narrow unicode builds
* change unicode narrow/wide cfg flag to be
  Py_UNICODE_SIZE_4 not Py_UNICODE_WIDE, which doesn't
  appear in sysconfig
* support framework builds on os x
* python27-sys exports compilation flags as cargo vars,
  and rust-python resurrects them as cfg flags
* travis runs against local python27-sys
* rust-cpython depends on git python27-sys, because
  the one on cargo is now incompatible with it (since bb13ec)
2015-05-17 13:20:58 +01:00
James Salter 6a41227969 dynamically determine python flags for cfg
* in build.rs, call the python interpreter located by pkgconfig
and use sysconfig to determine the flags it was built with.
* pass these flags to the build via --cfg
* refactor existing references to features to refer to these
instead
2015-05-13 19:03:13 +01:00
Daniel Grunwald b9b67ee932 Add fileobject, cobject and pycapsule headers 2015-05-07 23:18:48 +02:00
Daniel Grunwald bab3214595 Remove link attributes, we use pkg-config instead 2015-05-03 01:05:14 +02:00
Daniel Grunwald 6b5da09e79 Add python27-sys to rust-cpython repository 2015-04-26 10:34:31 +02:00