[Cython] longintrepr.h issues with MinGW

2018-10-22 Thread Robert Bradshaw
Given that https://bugs.python.org/issue4709 results in extension modules that seem to work, but silently produce completely incorrect answers, I'm thinking we should either disable our long-unpacking code on these platforms, or at the very least give a runtime error if we detect issues like sizeof

Re: [Cython] Failing test reimport_from_subinterpreter

2018-10-22 Thread Jeroen Demeyer
On 2018-10-21 15:44, Stefan Behnel wrote: Maybe print "sys.path" and "sys.meta_path" in a couple of places? So I did and the problem is indeed related to sys.path. When running *only* the reimport_from_subinterpreter tests, sys.path starts with the following entries: '' '/home/jdemeyer/sage

Re: [Cython] Failing test reimport_from_subinterpreter

2018-10-22 Thread Jeroen Demeyer
n 2018-10-22 16:44, Jeroen Demeyer wrote: The entries marked with # < are different but I don't know why. There is a difference in $PYTHONPATH. When it works, PYTHONPATH equals '/home/jdemeyer/sage-test/local/var/tmp/sage/build/cython-0.29/src/TEST_TMP/support/lib.linux-ppc64le-2.7:/home/

Re: [Cython] Failing test reimport_from_subinterpreter

2018-10-22 Thread Jeroen Demeyer
OK, I finished analyzing the problem. It's a combination of: 1. the Sage wrapper around the Cython installer setting PYTHONPATH 2. the reimport_from_subinterpreter test failing if PYTHONPATH is set I'll open a PR quick. ___ cython-devel mailing list c