[Cython] Why does embed-position use relative filenames?

2017-10-25 Thread Jeroen Demeyer
When Cython is run with the --embed-position option (or when Cython.Compiler.Options.embed_pos_in_docstring is true), Cython writes headers in the docstring like File: sage/rings/integer.pyx (starting at line 358) The filenames that Cython uses here are always made relative to the current wor

Re: [Cython] Why does embed-position use relative filenames?

2017-10-25 Thread Erik Bray
On Wed, Oct 25, 2017 at 2:24 PM, Jeroen Demeyer wrote: > When Cython is run with the --embed-position option (or when > Cython.Compiler.Options.embed_pos_in_docstring is true), Cython writes > headers in the docstring like > > File: sage/rings/integer.pyx (starting at line 358) > > The filenames t

Re: [Cython] Why does embed-position use relative filenames?

2017-10-25 Thread Jeroen Demeyer
On 2017-10-25 14:42, Erik Bray wrote: IMO the relative paths make more sense in a way, because when the module is installed the path is relative to the file's location relative to its `sys.path` entry. If it defaulted to absolute paths I didn't say that it should default to absolute paths. I a

Re: [Cython] Why does embed-position use relative filenames?

2017-10-25 Thread Erik Bray
On Wed, Oct 25, 2017 at 2:50 PM, Jeroen Demeyer wrote: > On 2017-10-25 14:42, Erik Bray wrote: >> >> IMO the relative paths make more sense in a way, because when the >> module is installed the path is relative to the file's location >> relative to its `sys.path` entry. >> >> If it defaulted to ab

Re: [Cython] Why does embed-position use relative filenames?

2017-10-25 Thread Erik Bray
On Wed, Oct 25, 2017 at 2:50 PM, Jeroen Demeyer wrote: > On 2017-10-25 14:42, Erik Bray wrote: >> >> IMO the relative paths make more sense in a way, because when the >> module is installed the path is relative to the file's location >> relative to its `sys.path` entry. >> >> If it defaulted to ab

Re: [Cython] Why does embed-position use relative filenames?

2017-10-25 Thread Stefan Behnel
Jeroen Demeyer schrieb am 25.10.2017 um 14:50: > On 2017-10-25 14:42, Erik Bray wrote: >> IMO the relative paths make more sense in a way, because when the >> module is installed the path is relative to the file's location >> relative to its `sys.path` entry. >> >> If it defaulted to absolute paths