-
Notifications
You must be signed in to change notification settings - Fork 495
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
put bin/ in builddir if specified in buildozer.spec #274
Conversation
Hi, thanks for your patch! I think bin_dir option would be better either for provisioning another directory from the generated apk. Would you mind to reflect thoses changes on your PR? That would be cool :D |
OK, I can do that. But what should it be called?
Then |
bin_dir with underscore. builddir without underscore is a mistake. And no, you don't append bin/ to the bid_dir, that's the point of it :) |
The pull request is updated. Here is how to use it in the spec file (example):
Now the |
I guess we misunderstood, you don't append bin/ to the bin_dir. The end result must be:
You can even imagine something like:
The bin/ suffix is the default of bin_dir, or if bin_dir is specificed, use it as it is |
OK, corrected. I misunderstood when you wrote "you don't append bin/ to the bin_dir", I thought you meant the spec file. However, this behaviour is not consistent. In the case of |
Should I do something more? |
Maybe correct the mistake of the name "builddir", by creating a new config option "build_dir", which will not contain the subfolder ".builddir". That way the config "builddir" could be kept for backwards compatibility. Related, when specifying a builddir, there is currently an error if there is no directory "bin/" in the main kivy source dir. File "/usr/lib/python2.7/dist-packages/buildozer/targets/android.py", line 749, in build_package |
This looks good to me, if nobody (@tito? :P) has any objections I'll merge this tomorrow for our release. |
I prefer to keep generated (thus reproducable) things outside of my project folder. Thus, I added this to my
buildozer.spec
file (example):Now, if I launch
buildozer android debug deploy run
, the local folder.buildozer
is created in this specified builddir instead of the project's folder. However,bin/
is still created in the project's folder, littering it with a big.apk
file.My patch does the following: if builddir is specified (as seen above), then
bin/
(similarly to.buildozer/
) will be created in the builddir. This way the project folder has the source files and things necessary for the build process are nicely separated.Rationale: I keep my projects in my Dropbox folder and I like to keep their sizes to the minimum. Build stuff should go somewhere else.