Skip to content

Add a hook to change how utilities files are read.#3273

Merged
scoder merged 5 commits intocython:masterfrom
rainwoodman:patch-1
Jan 11, 2020
Merged

Add a hook to change how utilities files are read.#3273
scoder merged 5 commits intocython:masterfrom
rainwoodman:patch-1

Conversation

@rainwoodman
Copy link
Contributor

@rainwoodman rainwoodman commented Dec 16, 2019

Add read_utitlities_hook to override how utilities files are accessed.

This change simplifies how Cython can be packaged into a single
file binary executable, where utility files are stored inside the
binary executable as package resource.

@rainwoodman
Copy link
Contributor Author

@robertwb

@scoder
Copy link
Contributor

scoder commented Dec 23, 2019

May I ask what "tinypar" is?

@scoder
Copy link
Contributor

scoder commented Dec 23, 2019

I created a PR to remove the whole utility code searching machinery in #3280. It's really unnecessary and adds useless complexity. I'll wait for travis-CI to be happy and then merge it. Could you please create a new PR based on that, in case it's still necessary?

@rainwoodman
Copy link
Contributor Author

rainwoodman commented Dec 23, 2019 via email

@rainwoodman
Copy link
Contributor Author

Sure. Thanks for the patch. I will give this a go tomorrow.

@rainwoodman rainwoodman changed the title Refactor resource file access to ease tinypar integration. Add a hook to change how utilities files are read. Dec 23, 2019
Add set_read_utitlities_hook() to override how utilities
files are accessed.

This change simplifies how Cython can be packaged into a single
file binary executable, where utility files are stored inside the
binary executable as package resource.
@rainwoodman
Copy link
Contributor Author

How about this version?

@robertwb
Copy link
Contributor

This looks fine to me. @scoder any further comments?

@scoder scoder added this to the 3.0 milestone Jan 11, 2020
@scoder scoder merged commit 640aab7 into cython:master Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants