From 24dd5c9cf0f62f33b0a20ea1f5555a826bf4473d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 29 Sep 2012 22:17:48 +0200 Subject: fix for https://github.com/erkin/ponysay/commit/3e2ce7a5793fc975b2808aeb377c7f7cc5ca02e6 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 02f91b0..4589dab 100755 --- a/setup.py +++ b/setup.py @@ -374,7 +374,10 @@ class Setup(): filein = open('ponysay', 'rb') data = filein.read().decode('utf-8', 'replace') - data = data.replace('#!/usr/bin/env python', '#!/usr/bin/env ' + env) + if '#!/usr/bin/env python3' in data: + data = data.replace('#!/usr/bin/env python3', '#!/usr/bin/env ' + env) + else: + data = data.replace('#!/usr/bin/env python', '#!/usr/bin/env ' + env) for sharedir in [item[0] for item in sharedirs]: data = data.replace('/usr/share/ponysay/' + sharedir, conf[sharedir]) for sharefile in sharefiles: -- cgit