From 0fe529d0da73f8999447895c0a69553f1fb0fedb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Wed, 3 Apr 2013 21:11:06 +0200 Subject: [PATCH] setup fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b21c5aa1..8cfaa6d3 100755 --- a/setup.py +++ b/setup.py @@ -430,13 +430,15 @@ class Setup(): if filein is not None: filein .close() try: os.chdir('src') - os.system('zip -0 ../ponysay.zip ' + ' '.join(ponysaysrc)) # use not compress, prefer speed + cmd = 'zip -0 ../ponysay.zip ' + ' '.join(ponysaysrc) # use not compress, prefer speed + print(cmd) + os.system(cmd) finally: os.chdir('..') os.chmod('ponysay.zip', 0o755) try: fileout = open('ponysay.install', 'wb+') - filein = open('src/%s' % src, 'rb') + filein = open('ponysay.zip', 'rb') fileout.write(('#!/usr/bin/env %s\n' % env).encode('utf-8')) fileout.write(filein.read()) finally: