kivy-ios icon indicating copy to clipboard operation
kivy-ios copied to clipboard

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

Open Andrei-Pozolotin opened this issue 3 years ago • 2 comments

  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

Andrei-Pozolotin avatar Mar 13 '21 20:03 Andrei-Pozolotin

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

misl6 avatar Mar 27 '21 09:03 misl6

is there any reason this is not included

mrwulff avatar Mar 16 '24 21:03 mrwulff