-
Notifications
You must be signed in to change notification settings - Fork 256
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 this work with python 3.4 as well as 2.7 #164
Conversation
This seems to fix/touch a wide range of things, and there are multiple "fixup" commits, it would be better to separate it in different PRs and squashing the fixups in the relevant commits. Are you familiar enough with git for that? Thanks for your contribution! |
If you are willing to take my changes, I'm willing to neaten them up. Please pick up my smaller PRs, which I think are sufficiently tight (or tell me what they need). I'll then tee up one or two more ahead of the Python3 changes, and at the end of this process there will be a nice, clean, commit here for you to take . |
see if we can't make travis happy.
@tito plop |
@dessant feel free to handle the maintenance (pr and merge) :) |
@benson-basis please rebase and i'll merge right away if it passes py3 tests. |
Conflicts: .travis.yml Makefile setup.py tests/test_proxy.py
I merged; it passes 'make tests PYTHON3=1' for me --- on my mac. I haven't On Tue, Nov 3, 2015 at 7:04 AM, dessant notifications@github.com wrote:
|
It seems to fail both with py2 and 3 on linux. |
I'll start up a VM and sort it. On Tue, Nov 3, 2015 at 8:19 AM, dessant notifications@github.com wrote:
|
@benson-basis thanks a bunch for taking care of this, and sorry for the long silence. This project is in great need of a maintainer, if you would like to contribute beyond this pr, we would be glad to give you access. |
Hmm. On my linux VM, the python2 test worked once I pip installed future. As for the future, I did all this work when I had a problem that it solved. On Tue, Nov 3, 2015 at 8:35 AM, dessant notifications@github.com wrote:
|
@dessant Looks like I cured what ailed it. |
@benson-basis, awesome work, thanks again! |
Make this work with python 3.4 as well as 2.7
Some users are reporting failed installations and apk packaging also seems to fail after the merge. @benson-basis, @haricot were you able to build an apk with your branches? A different problem is the usage of future, which is a ~ 1.6 MB package, this makes it a bit heavy for Android deployment. A better alternative could be six. These issues must be sorted out quickly because buildozer uses pyjnius master, so this is reaching and breaking things for many people. The other option is to revert the pr. |
@dessant I don't know anything about apks. I don't know how to build one -- I don't even know if I have the tools to build one on any of my systems. Can you give me a hint? If you need to revert on master, how about you go ahead and add bimargulies (not this account) so I can maintain a branch until this sorts out? |
The android install instructions don't seem believable to me. They don't mention the NDK at all. |
I would be in favor of trying to fix master before resorting to keeping a separate branch. I see you've already taken steps to clean up master. Did the p4a docs help in the end? I don't have experience with android, but @inclement should be able to give you feedback. |
The docs were, in the end, enough of a hint. I still think someone forgot Until I know the precise p-f-a command that the other folks need to work, I On Wed, Nov 4, 2015 at 8:22 AM, dessant notifications@github.com wrote:
|
distribute.sh is part of the old p4a toolchain, it should not be needed for the guide linked above. |
I don't think that create makes apks. The doc says that apks are a separate Can someone who is trying to consume this stuff chime in and say what, On Wed, Nov 4, 2015 at 8:38 AM, dessant notifications@github.com wrote:
|
Yeah, the |
I would like to know how the consumers of this package use the apk
|
Mostly they probably don't, most people build apks will be using buildozer which uses the older python-for-android toolchain (with distribute.sh as noted above). However, this should be identical in the important technical ways to running a new-p4a command like:
|
That commands fails with a problem that isn't accessible to me: RAN: '/usr/bin/patch -t -d STDOUT: Please fix the android pxi file to be correct as checked in, since I can't On Wed, Nov 4, 2015 at 10:51 AM, Alexander Taylor notifications@github.com
|
The patch was broken by the recent changes to pyjnius, I've pushed an updated on to python-for-android master. Edit: It won't actually work on android until the futures dependency is removed, though. |
Also use dlopen on Mac and Linux, and clean up a number of other things.