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

2017-10-27 Thread Jeroen Demeyer
My use case is for calling Cython at runtime. For example, using 
cython.inline or %%cython or the SageMath-specific cython() function. In 
that case, absolute paths make the most sense since you want to support 
the user running Cython somewhere and then doing chdir().


Perhaps we could keep the default of relativizing the paths but support 
a parameter like


cython --embed-position=abspath
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


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

2017-10-27 Thread Erik Bray
On Fri, Oct 27, 2017 at 11:35 AM, Jeroen Demeyer  wrote:
> My use case is for calling Cython at runtime. For example, using
> cython.inline or %%cython or the SageMath-specific cython() function. In
> that case, absolute paths make the most sense since you want to support the
> user running Cython somewhere and then doing chdir().
>
> Perhaps we could keep the default of relativizing the paths but support a
> parameter like
>
> cython --embed-position=abspath

+1

That seems like a straightforward solution that should make everyone happy.
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel