Hi, I was trying the python 2.7 build and I think the line 23 in jcc2/__init__.py should be:
from jcc.config import SHARED (instead of from jcc2.config import..) Regards /Petrus On Thu, Mar 30, 2017 at 9:10 AM, Petrus Hyvönen <petrus.hyvo...@gmail.com> wrote: > Hi, > > With this version of of t_jccenv_strhash I can build both JCC and wrap the > library I'm using! > > Regards > /Petrus > > > >> >> >>> static PyObject *t_jccenv_strhash(PyObject *self, PyObject *arg) >>> { >>> unsigned long long hash = (unsigned long long) PyObject_Hash(arg); >>> static const size_t hexdig = sizeof(hash) * 2; >>> char buffer[hexdig + 1]; >>> >>> sprintf(buffer, "%0*llx", (int) hexdig, hash); >>> return PyUnicode_FromStringAndSize(buffer, hexdig); >>> } >>> >>> BTW this function should be also copied to the py2 directory where we >>> still use int allthough PyObject_Hash returns already long on python >>> >>>> 2.x. >>>> >>> >>> cu, >>> Rudi >>> >>> >>> > > > -- > _____________________________________________ > Petrus Hyvönen, Uppsala, Sweden > Mobile Phone/SMS:+46 73 803 19 00 <073-803%2019%2000> > -- _____________________________________________ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00