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

Make SDL2 & services_only bootstrap properly error with missing --private #1503

Merged
merged 1 commit into from Dec 3, 2018
Merged

Make SDL2 & services_only bootstrap properly error with missing --private #1503

merged 1 commit into from Dec 3, 2018

Conversation

ghost
Copy link

@ghost ghost commented Dec 3, 2018

The SDL2 & services_only bootstraps don't support building without --private, but the package assembling build.py will give an obscure backtrace if the option is omitted. This pull request adds in a proper error.

@AndreMiras
Copy link
Member

Thanks for the PR again 😄
I'm wondering, is is really only the case for sdl2 and services_only or is it also for other bootstraps.
If it's also for other bootstrap, then we may want to fail even earlier with https://docs.python.org/3/library/argparse.html#required what do you think?

@ghost
Copy link
Author

ghost commented Dec 3, 2018

No it's really just these two, I'm pretty sure. I didn't test them all, but scanned over the entire build/packaging code to see if it gracefully handles args.private being None or not. (sdl2 I actually ran and got a backtrace, that's how I started poking around this code in the first place)

I think the historical reason is that webview can launch a webserver even without custom app code, and pygame maybe launches some sort of pygame default window? While sdl2/service_only have no "default" graphical UIs that could show or do anything, so they need a custom entry point to work.

@AndreMiras AndreMiras merged commit 5ee19e6 into kivy:master Dec 3, 2018
@ghost ghost deleted the argsfix branch December 9, 2018 12:46
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

Successfully merging this pull request may close these issues.

1 participant