-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
android_new: fix force_build option #1006
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! I'll merge it once I've tested it.
Did you check that the force_build option works? Although the get_distribution
function handles it, I can't remember if it actually will behave the right way under all circumstances. I'll try to check this as well.
join(self.ctx.get_python_install_dir(), 'bin', 'python.host')) | ||
self.ctx.hostpython = join(self.ctx.get_python_install_dir(), 'bin', 'python.host') | ||
|
||
if isfile(join(self.ctx.get_python_install_dir(), 'bin', 'python.host')): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I right in reading that the only change here is skipping the copy if the target already exists? If so, it would be preferable to clean it up a little more and put only the sh.cp call in the if block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be better now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
@inclement AFAIK the option is working fine, as I am currently using it. |
@inclement |
I tested and was going to merge this but actually found that the formatting changes create a lot of unnecessarily long lines, in some places removing existing line breaks. Would you be interested in splitting this into a separate force_build fix and a formatting PR? Alternatively, I can pull the force_build fix out manually. |
@inclement Only the fix for |
Hi @ZingBallyhoo I'm really sorry we didn't make it to the tree and now the PR is conflicting 😢 |
I've rebased to master and squashed the commit. |
In current master, the
force-build
argument is defined, but never used. Small patch to fix it, and clean up a bit of PEP8.I have also added the config option to Buildozer here: kivy/buildozer#464