From 377da479e601364ceb66b305aef715e233c1242b Mon Sep 17 00:00:00 2001 From: Charley Peng Date: Sat, 24 May 2014 16:29:40 +1000 Subject: [PATCH] fix setup for Windows --- setup.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index b6def97..46eb4dd 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,15 @@ from distutils.core import setup import os +data = [ + ('/usr/share/zsh/site-functions', ['cheat/autocompletion/_cheat.zsh']), + ('/etc/bash_completion.d' , ['cheat/autocompletion/cheat.bash']), + ('/usr/share/fish/completions' , ['cheat/autocompletion/cheat.fish']) + ] + +if os.name == 'nt': + data = [] + setup( name = 'cheat', version = '2.0.1', @@ -21,11 +30,7 @@ setup( 'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f] }, scripts = ['bin/cheat'], - data_files = [ - ('/usr/share/zsh/site-functions', ['cheat/autocompletion/_cheat.zsh']), - ('/etc/bash_completion.d' , ['cheat/autocompletion/cheat.bash']), - ('/usr/share/fish/completions' , ['cheat/autocompletion/cheat.fish']) - ], + data_files = data, install_requires = [ 'docopt >= 0.6.1', 'pygments >= 1.6.0',