mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
setup.py: Automatically collect a list of source files to distribute.
This will help with refactoring, where source files may be added and/or moved.
This commit is contained in:
parent
45b53d6eb0
commit
4bdb42cf8e
1 changed files with 3 additions and 4 deletions
7
setup.py
7
setup.py
|
@ -9,6 +9,8 @@ from subprocess import Popen, PIPE
|
||||||
|
|
||||||
PONYSAY_VERSION = '3.0.3'
|
PONYSAY_VERSION = '3.0.3'
|
||||||
|
|
||||||
|
project_dir = os.path.dirname(__file__)
|
||||||
|
|
||||||
manpages = [('en', 'English'), # must be first
|
manpages = [('en', 'English'), # must be first
|
||||||
('es', 'Spanish'),
|
('es', 'Spanish'),
|
||||||
('sv', 'Swedish'),
|
('sv', 'Swedish'),
|
||||||
|
@ -37,10 +39,7 @@ miscfiles = [('COPYING', '/usr/share/licenses/ponysay/COPYING'),
|
||||||
('LICENSE', '/usr/share/licenses/ponysay/LICENSE'),
|
('LICENSE', '/usr/share/licenses/ponysay/LICENSE'),
|
||||||
('CREDITS', '/usr/share/licenses/ponysay/CREDITS')]
|
('CREDITS', '/usr/share/licenses/ponysay/CREDITS')]
|
||||||
|
|
||||||
ponysaysrc = [src + '.py' for src in
|
ponysaysrc = [i for i in os.listdir(os.path.join(project_dir, 'src')) if i.endswith('.py') and not i.startswith('.')]
|
||||||
('__main__', 'common', 'ponysay', 'argparser', 'balloon',
|
|
||||||
'backend', 'colourstack', 'ucs', 'spellocorrecter', 'kms',
|
|
||||||
'list', 'metadata', 'ponysaytool')]
|
|
||||||
|
|
||||||
COPY = 'copy'
|
COPY = 'copy'
|
||||||
HARD = 'hard'
|
HARD = 'hard'
|
||||||
|
|
Loading…
Reference in a new issue