Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encodes absolute source path in output #1565

Closed
jelmer opened this issue Dec 25, 2016 · 2 comments
Closed

encodes absolute source path in output #1565

jelmer opened this issue Dec 25, 2016 · 2 comments

Comments

@jelmer
Copy link
Contributor

jelmer commented Dec 25, 2016

cython encodes the path of the source cython path of the module it compiles in
its output.

It would be useful if it was possible to generate output that can be compiled
into bit-for-bit reproducible binaries.

E.g.
static const char __pyx_k_home_jelmer_src_bzr_unstable_bz[] = "/home/jelmer/src/bzr/unstable/bzrlib/_annotator_pyx.pyx";

This seems to be used as argument for PyCode_New() calls. Would it be reasonable to use relative paths or possibly have a flag to use relative paths?

@robertwb
Copy link
Contributor

robertwb commented Jan 4, 2017

I agree that relative paths would be good, perhaps relative to the package root? I'd like systems like ipython to still be able to locate the original code though.

@jelmer
Copy link
Contributor Author

jelmer commented Jan 5, 2017

I can't think of a good way to include a relative path that will be valid across e.g. package installation, so this might indeed require a flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants