From 546aeeec34844095d96ebd197509d63fb12b1a8f Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sat, 20 Oct 2018 11:47:45 +0200 Subject: [PATCH] Installs requirements in a single statement Relies on PEP 508 to set conditional requirements in one statement. Fixes buildozer p4a requirements install. --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 2e792d3e12..74117ffd6d 100644 --- a/setup.py +++ b/setup.py @@ -18,9 +18,10 @@ # must be a single statement since buildozer is currently parsing it, refs: # https://github.com/kivy/buildozer/issues/722 -install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2', 'six', 'enum34;python_version<"3.4"'] -if os.name != 'nt': - install_reqs.append('sh>=1.10') +install_reqs = [ + 'appdirs', 'colorama>=0.3.3', 'jinja2', 'six', + 'enum34; python_version<"3.4"', 'sh>=1.10; sys_platform!="nt"' +] # By specifying every file manually, package_data will be able to # include them in binary distributions. Note that we have to add