Commit Graph

8 Commits

Author SHA1 Message Date
James Salter b1eca56ec3 Python 3 build support
* Add python3-sys to rust-cpython as an optional feature, and
  make python27-sys also optional, but still the default
* Parametrise python27-sys/build.rs so that it is python
  version independent, and clone it into python3-sys/build.rs.
  Hopefully this can continue to be maintained as an identical
  file.
* python27-sys and python3-sys gain features for explicitly
  selecting a python version to link to. for python27-sys,
  there's currently only python27; for python3-sys there's
  python 3.4 and 3.5.
* explicitly tell travis to use nightlies (seems to have
  started trying to use 1.0.0)
2015-05-23 15:23:08 +01: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