autoconf tools and python3 3m 3dm

2014-01-21 Thread Mark Heieis
Hi, I've been migrating a python2 package+extension to python3. The problem I'm running into is with ./configure and which version it picks up or doesn't in this case. The default is python2 and works just fine as expected. However, when ./configure PYTHON=python3 is run, the problems occur.

Re: Porting c extension - PyBuffer_New() deprecated in python3. What's the replacement?

2014-01-18 Thread Mark Heieis
. On 2014-01-11 01:10, Stefan Behnel wrote: Mark Heieis, 11.01.2014 06:47: I need to convert the following existing c extension code to support Python 3. // --- existing code -- // PyBuffer_New() deprecated in python3 if (!(pyBuf = PyBuffer_New(len))) { return

Porting c extension - PyBuffer_New() deprecated in python3. What's the replacement?

2014-01-11 Thread Mark Heieis
Hi I need to convert the following existing c extension code to support Python 3. // --- existing code -- // PyBuffer_New() deprecated in python3 if (!(pyBuf = PyBuffer_New(len))) { return NULL; } // should use memoryview object in python3 if (PyObject_AsW