mirror of
https://github.com/erkin/ponysay
synced 2024-11-15 16:07:59 +00:00
setup fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
5e77bd6224
commit
0fe529d0da
1 changed files with 4 additions and 2 deletions
6
setup.py
6
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:
|
||||
|
|
Loading…
Reference in a new issue