Skip to content

Setuptools for Python3 (Crystax) #1248

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 1 commit into from
Mar 31, 2018

Conversation

AndreMiras
Copy link
Member

@AndreMiras AndreMiras commented Mar 31, 2018

Adds python3crystax support to setuptools recipe.
Also removed unused imports.

Before the fix, running buildozer android debug was resulting the following:

[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[ERROR]:   Didn't find any valid dependency graphs.
[ERROR]:   This means that some of your requirements pull in conflicting dependencies.
[ERROR]:   Exiting.
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3crystax,kivy,setuptools --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/ubuntu/demo/.buildozer/android/platform/build
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

Test program:

from kivy.app import App
from kivy.uix.label import Label
import pkg_resources


class MyApp(App):

    def build(self):
        version = pkg_resources.get_distribution("setuptools").version
        return Label(text="version: " + version)


if __name__ == '__main__':
    MyApp().run()

Side note, this is a simple fix to merge, but it actually requires few more changes to pythonforandroid/recipe.py and pythonforandroid/recipes/hostpython3crystax/__init__.py that are soon to come.

Adds python3crystax support to setuptools recipe.
Also removed unused imports.
@AndreMiras AndreMiras force-pushed the feature/setuptools_python3crystax branch from 17262dd to f57ca2d Compare March 31, 2018 20:07
@inclement inclement merged commit 405934e into kivy:master Mar 31, 2018
@inclement
Copy link
Member

Thanks!

@AndreMiras
Copy link
Member Author

Super fast, thanks!

@AndreMiras AndreMiras deleted the feature/setuptools_python3crystax branch April 1, 2018 02:15
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