Brett Cannon <br...@python.org> added the comment:
On Sat, Aug 4, 2018, 16:07 Jeroen Demeyer, <rep...@bugs.python.org> wrote: > > Jeroen Demeyer <j.deme...@ugent.be> added the comment: > > To everybody who mentioned that Cython sources don't belong on sys.path: > where *do* they belong then? > In a subdirectory similar to __pycache__. > One issue which hasn't been mentioned before is packaging. By installing > Cython sources along with the generated .so files, we can re-use all the > existing tooling from distutils/setuptools/wheel to install those source > files. Technically this doesn't fall under our purview but that of distutils-sig. Plus how distutils or setuptools do anything is an implementation detail and it's more important how a wheel would handle this (if any special support is even necessary). Remember, PEP 517 us our future and is there to break the monopoly of setuptools. If we want to install them in a different way, ideally it should be done in > a way sanctioned by the PyPA and the tools should support it. We should > then also change linecache to search for source files in that directory. > Yep. > Unless somebody can come up with a simple suggestion, this seems to > require basically a PEP. Or at least a new API. I don't plan to write that PEP and fight for it, since this can easily be > fixed with essentially a 1-line patch to linecache, as I proposed in > https://github.com/python/cpython/pull/6653 > > ---------- > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <https://bugs.python.org/issue32797> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32797> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com