-
-
Notifications
You must be signed in to change notification settings - Fork 590
Support for freezing software like py2exe, pyinstaller or Cx_Freeze. #162
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
Conversation
I've just seen the previous pull request (#161) which may be more appropriate. Your call as long as it solves the freezing issue ;) Thanks, |
:) Yeah thanks for the alternate patch, appreciated! I'd really like, here or in #161, a test to make sure this stays working (besides my comment there). Or, at least, to have one of these things run as a tox env. If either of you have any idea there I'd certainly like to hear it, otherwise I'll find some time to investigate. |
Hopefully this makes things like cx_Freeze work, but they appear to all be special snowflakes and this doesn't appear easy to test. Credit to @pjdelport for helping clear away some of the smoke. Closes #161, #162
Pushed out a fix, would love to hear if that fixes things for you. Cheers. |
I am going to test tomorrow when I have access to my Windows with Cx_Freeze installed and will let you know the result. Cheers, |
So far I get the following error. I'll investigate more when I have time, maybe something is required in the cx_freeze setup script.
|
Ok I managed to make it work by adding "zip_includes" to my cx_Freeze setup script. No sure this is the correct way though. |
86f965e Merge pull request #209 from json-schema-org/refactor-format f056cb7 fix: incorrect relative-json-pointer test, closes #208 814eb16 refactor: split format.json to multiple files, closes #162 870b9f7 Merge pull request #207 from json-schema-org/draft-7-ajv 3d9830a feat: test draft-7 with Ajv 9ce7b4c Merge pull request #200 from handrews/draft-07 cf6e663 Apparently descriptions must be < 60 chars 1042cd6 Update draft coverage information 0680b46 Restore regex format test from draft-03 f58637d Basic relative json pointer tests for format 1b43ffa Partial IRI and IRI-reference test suite 9b020b8 Add idn-email and idn-hostname format tests ca342c9 Add tests for "date" and "time" formats 0d64501 Tests for contentMediaType and contentEncoding ea357f3 Update draft coverage information 321db9a Tests for if, then, and else keywords dedd3f1 Unmodified copy of draft6 tests to draft7 git-subtree-dir: json git-subtree-split: 86f965e53dda0b6c57e70ddd726243e1e061cf84
jsonschema doesn't work when "frozen", it will try to open the draft3.json and draft4.json files using invalid paths.
For instance, in the case of Cx_Freeze on Windows it will try to open something like: C:\path_to_build_dir\library.zip\schemas\draft3.json, obviously this fails because library.zip is a zip file, not a directory!
With this correction, the path would be C:\path_to_build_dir\schemas\draft*.json only when the application using jsonshema is frozen.