mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 12:27:59 +01: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()
|
if filein is not None: filein .close()
|
||||||
try:
|
try:
|
||||||
os.chdir('src')
|
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:
|
finally:
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
os.chmod('ponysay.zip', 0o755)
|
os.chmod('ponysay.zip', 0o755)
|
||||||
try:
|
try:
|
||||||
fileout = open('ponysay.install', 'wb+')
|
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(('#!/usr/bin/env %s\n' % env).encode('utf-8'))
|
||||||
fileout.write(filein.read())
|
fileout.write(filein.read())
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue