This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients brett.cannon, eric.snow, erik.bray, jdemeyer, ncoghlan, paul.moore, petr.viktorin, sth
Date 2018-08-04.23:07:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533424024.49.0.56676864532.issue32797@psf.upfronthosting.co.za>
In-reply-to
Content
To everybody who mentioned that Cython sources don't belong on sys.path: where *do* they belong then?

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. 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.

Unless somebody can come up with a simple suggestion, this seems to require basically a PEP. 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
History
Date User Action Args
2018-08-04 23:07:04jdemeyersetrecipients: + jdemeyer, brett.cannon, paul.moore, ncoghlan, petr.viktorin, erik.bray, eric.snow, sth
2018-08-04 23:07:04jdemeyersetmessageid: <1533424024.49.0.56676864532.issue32797@psf.upfronthosting.co.za>
2018-08-04 23:07:04jdemeyerlinkissue32797 messages
2018-08-04 23:07:04jdemeyercreate