mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
generate dimension files at build
This commit is contained in:
parent
ac4a8ce9d7
commit
70f6ebc966
1 changed files with 9 additions and 0 deletions
9
setup.py
9
setup.py
|
@ -458,6 +458,12 @@ class Setup():
|
||||||
if fileout is not None: fileout.close()
|
if fileout is not None: fileout.close()
|
||||||
if filein is not None: filein .close()
|
if filein is not None: filein .close()
|
||||||
|
|
||||||
|
for sharedir in [sharedir[0] for sharedir in sharedirs]:
|
||||||
|
for sharefile in os.listdir(conf[sharedir]):
|
||||||
|
if sharefile.endswith('.pony') and (sharefile != '.pony'):
|
||||||
|
Popen(['./ponysay-tool.py', '--dimensions', conf[sharedir]], stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate()
|
||||||
|
break
|
||||||
|
|
||||||
for shell in [item[0] for item in shells]:
|
for shell in [item[0] for item in shells]:
|
||||||
if conf[shell] is not None:
|
if conf[shell] is not None:
|
||||||
for command in commands:
|
for command in commands:
|
||||||
|
@ -684,6 +690,9 @@ class Setup():
|
||||||
for command in commands:
|
for command in commands:
|
||||||
files.append('completion/%s-completion.%s' % (shell, command))
|
files.append('completion/%s-completion.%s' % (shell, command))
|
||||||
files.append('completion/%s-completion.%s.install' % (shell, command))
|
files.append('completion/%s-completion.%s.install' % (shell, command))
|
||||||
|
for sharedir in [sharedir[0] for sharedir in sharedirs]:
|
||||||
|
for dimfile in ('widths', 'heights', 'onlyheights'):
|
||||||
|
files.append(sharedir + '/' + dimfile)
|
||||||
|
|
||||||
self.removeLists(files, dirs)
|
self.removeLists(files, dirs)
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in a new issue