Skip to content

add flask recipe and flask depend recipes. #472

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

Merged
merged 6 commits into from
Nov 8, 2015
Merged

add flask recipe and flask depend recipes. #472

merged 6 commits into from
Nov 8, 2015

Conversation

lc-soft
Copy link

@lc-soft lc-soft commented Oct 10, 2015

No description provided.

the `setup.py` file can not be used directly in these packages,
 In `from setuptools import  setup`, there will be error when package building ,
this code need change into `from distutils.core import setup` can solve errors..
Before modification, there will be the following error:
```
Leaving ARM environment
Call build_click
Entering in ARM environment
Compiler found at /home/human/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup
  File "/home/human/.local/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/home/human/.local/lib/python2.7/site-packages/setuptools/extension.py", line 8, in <module>
    from .dist import _get_unpatched
  File "/home/human/.local/lib/python2.7/site-packages/setuptools/dist.py", line 18, in <module>
    from setuptools import windows_support
  File "/home/human/.local/lib/python2.7/site-packages/setuptools/windows_support.py", line 2, in <module>
    import ctypes
  File "/home/human/Work/browser/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/ctypes/__init__.py", line 10, in <module>
    from _ctypes import Union, Structure, Array
ImportError: /home/human/Work/browser/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/lib-dynload/_ctypes.so: wrong ELF class: ELFCLASS32

```

the `setuptools` looks Could not to use,  so I changed it to use `distutils.core`.
the version 1.0.2d has complie error, so, I switched to the 1.0.1p version.
@inclement
Copy link
Member

Looks good, thanks. Just to check, I assume you checked that openssl is working with the new version (just paranoid about this)?

Also, how are you using flask, is it as part of a kivy app? I'm thinking about making a standalone flask/django + webview bootstrap with the new toolchain and I'm interested to hear if it works on the python side with no issues.

@lc-soft
Copy link
Author

lc-soft commented Oct 12, 2015

my app is using kivy、flask and webview, like this:
simple

@inclement
Copy link
Member

Okay, great. Thanks for the contribution and sorry for the delay in merging.

inclement added a commit that referenced this pull request Nov 8, 2015
add flask recipe and flask depend recipes.
@inclement inclement merged commit 9b4d6a7 into kivy:old_toolchain Nov 8, 2015
@lc-soft lc-soft deleted the old_toolchain branch May 11, 2020 15:02
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.

2 participants