diff --git a/pythonforandroid/recipes/pyjnius/__init__.py b/pythonforandroid/recipes/pyjnius/__init__.py index 999dc6ee3d..03a82ef752 100644 --- a/pythonforandroid/recipes/pyjnius/__init__.py +++ b/pythonforandroid/recipes/pyjnius/__init__.py @@ -12,8 +12,7 @@ class PyjniusRecipe(CythonRecipe): depends = [('python2', 'python3crystax'), ('sdl2', 'sdl'), 'six'] site_packages_name = 'jnius' - patches = [('sdl2_jnienv_getter.patch', will_build('sdl2')), - 'getenv.patch'] + patches = [('sdl2_jnienv_getter.patch', will_build('sdl2'))] def postbuild_arch(self, arch): super(PyjniusRecipe, self).postbuild_arch(arch) diff --git a/pythonforandroid/recipes/pyjnius/getenv.patch b/pythonforandroid/recipes/pyjnius/getenv.patch deleted file mode 100644 index 5c5335fc4c..0000000000 --- a/pythonforandroid/recipes/pyjnius/getenv.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/setup.py b/setup.py -index b3c422d..f90694c 100644 ---- a/setup.py -+++ b/setup.py -@@ -13,10 +13,11 @@ PY3 = sys.version_info >= (3,0,0) - def getenv(key): - val = environ.get(key) - if val is not None: -- if PY3: -- return val.decode() -- else: -- return val -+ return val -+ # if PY3: -+ # return val.decode() -+ # else: -+ # return val - else: - return val -