[pypy-dev] pypy3.5 / boost

2017-08-01 Thread David Callahan
I was exploring the boost C++ library support for Python 3 extensions with Python3.5 using a built-from-source copy of pypy using the py3.5 branch. Below are the errors I encountered. Are these expected problems that someone is working on? Should someone be working on them? Or is this intended

Re: [pypy-dev] pypy3.5 / boost

2017-08-04 Thread David Callahan
Thanks. Did you look into the missing Py_fopen as well? To answer your question, Facebook has a large python application which leverages an even larger C++ code base which is exposed to python with iva sadly large number of different ways including Boost. We are interested in using PyPy but ne

Re: [pypy-dev] pypy3.5 / boost

2017-08-04 Thread David Callahan
Wow, this is a 7-year old issue with boost; https://svn.boost.org/trac10/ticket/4125 ( On 8/4/17, 12:55 PM, "David Callahan" wrote: Thanks. Did you look into the missing Py_fopen as well? To answer your question, Facebook has a large python application which leverag

Re: [pypy-dev] pypy3.5 / boost

2017-08-04 Thread David Callahan
Never mind about Py_fopen, I see you gave me a workaround. On 8/4/17, 1:18 PM, "David Callahan" wrote: Wow, this is a 7-year old issue with boost; https://svn.boost.org/trac10/ticket/4125 ( On 8/4/17, 12:55 PM, "David Callahan" wrote: Thanks. D

[pypy-dev] mixed embedding and cpyext access`

2017-08-10 Thread David Callahan
The Boost libraries in their test jigs use a mixture of an embedded API and direct access to the methods in Python.h. Below is an example which compiles with the py3.5 branch, correctly prints “hello world” but then faults with an message: “Invalid RPython operation (NULL ptr or bad array index

[pypy-dev] distutils configuration

2017-10-04 Thread David Callahan
I need to adjust the default configuration used by “distutils” for compilation. In my default build of branch release-pypy3.5-5.x, the toplevel “distutils.sysconfig” dispatches as follows: if '__pypy__' in sys.builtin_module_names: from distutils.sysconfig_pypy import * from distutils.sy

[pypy-dev] dist.py:261: UserWarning: Unknown distribution option: 'cffi_modules'

2017-10-05 Thread David Callahan
Has anyone experience building the package cryptography-1.9 using PyPy and setup.py? In the build phase I encounter this diagnostic …/python/pypy.5.8/…/lib-python/3/distutils/dist.py:261: UserWarning: Unknown distribution option: 'cffi_modules' but the stage seems to complete without error. I

Re: [pypy-dev] dist.py:261: UserWarning: Unknown distribution option: 'cffi_modules'

2017-10-06 Thread David Callahan
, October 6, 2017 at 5:32 AM To: David Callahan Cc: PyPy Dev Subject: Re: [pypy-dev] dist.py:261: UserWarning: Unknown distribution option: 'cffi_modules' Hi David, We test cryptography against PyPy in our CI, and I install it semi-regularly, so I'd expect it to work :-)

[pypy-dev] fiber support

2017-10-16 Thread David Callahan
folly:fibers (https://github.com/facebook/folly/tree/master/folly/fibers ) is a C++ package for lightweight, cooperatively scheduled threads. We have an application which extends this to CPython by adding the following save/restore code around task function invocation: auto tstate = PyT

Re: [pypy-dev] fiber support

2017-10-17 Thread David Callahan
wski On Mon, Oct 16, 2017 at 7:18 PM, David Callahan wrote: > folly:fibers (https://github.com/facebook/folly/tree/master/folly/fibers ) > is a C++ package for lightweight, cooperatively scheduled threads. We have > an application which extends this to CPython by ad