kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
758 stars 236 forks source link

recipes: add new `materialyoucolor` recipe #898

Closed T-Dynamos closed 3 months ago

T-Dynamos commented 3 months ago

Closes #895

mrwulff commented 3 months ago

(venv) kevinwulff@Kevins-MacBook-Air 3 % toolchain build materialyoucolor

[INFO ] Building with 8 processes, where supported

[INFO ] Want to build ['materialyoucolor']

[INFO ] Using the bundled version for recipe 'materialyoucolor'

[INFO ] Loaded recipe materialyoucolor (depends of ['setuptools'], optional are [])

[INFO ] Using the bundled version for recipe 'setuptools'

Traceback (most recent call last):

File "/Users/kevinwulff/3/venv/bin/toolchain", line 8, in

sys.exit(main())

File "/Users/kevinwulff/3/venv/lib/python3.10/site-packages/kivy_ios/toolchain.py", line 1670, in main

ToolchainCL()

File "/Users/kevinwulff/3/venv/lib/python3.10/site-packages/kivy_ios/toolchain.py", line 1407, in init

getattr(self, args.command)()

File "/Users/kevinwulff/3/venv/lib/python3.10/site-packages/kivy_ios/toolchain.py", line 1483, in build

build_recipes(args.recipe, ctx)

File "/Users/kevinwulff/3/venv/lib/python3.10/site-packages/kivy_ios/toolchain.py", line 1201, in build_recipes

recipe = Recipe.get_recipe(name, ctx)

File "/Users/kevinwulff/3/venv/lib/python3.10/site-packages/kivy_ios/toolchain.py", line 1064, in get_recipe

mod = importlib.import_module(f"kivy_ios.recipes.{name}")

File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 1050, in _gcd_import

File "", line 1027, in _find_and_load

File "", line 1004, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'kivy_ios.recipes.setuptools'

getting an error when trying to install

subhashsharma commented 3 months ago

@T-Dynamos - I have the same issue with your Recipe. I tried the below Recipe:

from kivy_ios.toolchain import CythonRecipe

class MaterialyoucolorRecipe(CythonRecipe):
    version = "master"
    url = "https://github.com/T-Dynamos/materialyoucolor-python/archive/{version}.zip"
    depends = ["python3"]
    archs = ["x86_64"]

recipe = MaterialyoucolorRecipe()

But I get the same SSL CERTIFICATE error which I am yet to resolve in my Mac's Python env.

T-Dynamos commented 3 months ago

Huh?, I don't understand:

Nothing to do. No updated recipes.
AndreMiras commented 3 months ago

Thanks for catching it, I'm addressing it in https://github.com/kivy/kivy-ios/pull/900 Let's wait for it to be reviewed/merged so we can rebase yours on top

misl6 commented 3 months ago

900 has been merged.

@T-Dynamos and @AndreMiras, feel free to rebase / complete the review, I will keep #899 in pending until this PR is merged, and rebase on top of it at the end.

misl6 commented 3 months ago

@T-Dynamos seems you left a few things with unresolved merges.

T-Dynamos commented 3 months ago

@misl6 :) Solved.

T-Dynamos commented 3 months ago

Seems there are some errors, I will fix them and re-request review.

T-Dynamos commented 3 months ago

Sorry I am new to IOS, Is there any c++_shared lib in IOS?, as I use this in android:

stl_lib_name = "c++_shared"