Skip to content

Commit 23bf127

Browse files
committed
allow installation on Windows
1 parent cce254f commit 23bf127

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414

1515
data_files = []
1616

17+
18+
if os.name == 'nt':
19+
install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2',
20+
'six']
21+
else:
22+
install_reqs = ['appdirs', 'colorama>=0.3.3', 'sh>=1.10', 'jinja2',
23+
'six']
24+
1725
# By specifying every file manually, package_data will be able to
1826
# include them in binary distributions. Note that we have to add
1927
# everything as a 'pythonforandroid' rule, using '' apparently doesn't
@@ -50,8 +58,7 @@ def recursively_include(results, directory, patterns):
5058
author_email='[email protected]',
5159
url='https://github.com/kivy/python-for-android',
5260
license='MIT',
53-
install_requires=['appdirs', 'colorama>=0.3.3', 'sh>=1.10', 'jinja2',
54-
'six'],
61+
install_requires=install_reqs,
5562
entry_points={
5663
'console_scripts': [
5764
'python-for-android = pythonforandroid.toolchain:main',

0 commit comments

Comments
 (0)