I'm surprised that *.c files created by Cython for pyX may be used for py(5-X) without many problems. I'd expect this to break down totally...
Dima On Tue, Sep 24, 2019 at 6:06 PM Simon King <simon.k...@uni-jena.de> wrote: > > Hi Dima, > > On 2019-09-24, Dima Pasechnik <dimp...@gmail.com> wrote: > > Shouldn't coexisting installations like this have different --prefix ? > > Of course. But if I understand correctly, this only affects where stuff > is installed, not where it is built. The situation is as follows: > > - the .c files are created in the source directory, i.e., where the > corresponding .pyx files live. Therefore the .c files are only > re-generated when the .pyx file is touched, but not when the language > level changes. > - the .so files are created in build/lib.linux-x86_64-2.7 resp. -3.7, > hence, the paths do take into account the language level. This is of > course a good idea, but not enough (because of the .c files). > - eventually the .so files are installed in --prefix. > > The .c file can very well depend on the language level. E.g., in the Sage > library, compile time variables are used to tell Cython what code to > use for py2 and what code for py3. > > Hence, IMHO it is clearly a bug that the .c files are not by default > created in a path that depends on the language level. > > But I don't know where that bug should be reported. > > Best regards, > Simon > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/qmdiei%2479ou%241%40blaine.gmane.org. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq1mZMcPo27u%2BHzzmzkdqeecRyxEnt1Uiavojd8F1xZycA%40mail.gmail.com.