Skip to content

Commit 546aeee

Browse files
committed
Installs requirements in a single statement
Relies on PEP 508 to set conditional requirements in one statement. Fixes buildozer p4a requirements install.
1 parent 7aaeeae commit 546aeee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818

1919
# must be a single statement since buildozer is currently parsing it, refs:
2020
# https://github.com/kivy/buildozer/issues/722
21-
install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2', 'six', 'enum34;python_version<"3.4"']
22-
if os.name != 'nt':
23-
install_reqs.append('sh>=1.10')
21+
install_reqs = [
22+
'appdirs', 'colorama>=0.3.3', 'jinja2', 'six',
23+
'enum34; python_version<"3.4"', 'sh>=1.10; sys_platform!="nt"'
24+
]
2425

2526
# By specifying every file manually, package_data will be able to
2627
# include them in binary distributions. Note that we have to add

0 commit comments

Comments
 (0)