kivy / kivy-ios

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

recipes/python3/reduce_python breaks google-auth-library-python-oauthlib via wsgiref #595

Open Andrei-Pozolotin opened 3 years ago

Andrei-Pozolotin commented 3 years ago
  1. currently, kivy-ios/recipes/python3/reduce_python removes wsgiref

https://github.com/kivy/kivy-ios/blob/2cb084c26b7e9b45b027961cded13521b8db5b6b/kivy_ios/recipes/python3/__init__.py

        # cleanup python libraries
        with cd(join(
                self.ctx.dist_dir, "root", "python3", "lib", "python3.8")):
            sh.rm("-rf", "wsgiref", "curses", "idlelib", "lib2to3",
                  "ensurepip", "turtledemo", "lib-dynload", "venv",
                  "pydoc_data")
  1. that breaks google-auth-oauthlib

https://github.com/googleapis/google-auth-library-python-oauthlib

even in cases when wsgiref is not actually used in active code path, but merely due to import

https://github.com/googleapis/google-auth-library-python-oauthlib/blob/master/google_auth_oauthlib/flow.py

import wsgiref.simple_server
import wsgiref.util
misl6 commented 3 years ago

@tito Do you remind why wsgiref was included in the cleanup? Just for some decluttering or something else?

mrwulff commented 7 months ago

is there any reason this is not included