From 7dcd035dc532e0bf87f2add111532187a7cbed9d Mon Sep 17 00:00:00 2001 From: chriskiehl Date: Sun, 24 Aug 2014 16:05:43 -0400 Subject: [PATCH] Added data_files to setup.py --- .idea/workspace.xml | 168 ++++++++++---------------------------------- setup.py | 18 ++++- 2 files changed, 54 insertions(+), 132 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c564245..3d431a2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,10 @@ - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - + @@ -187,7 +121,7 @@ - - - + + - - + @@ -656,6 +589,7 @@ + @@ -754,11 +688,6 @@ - - - - - @@ -883,9 +812,7 @@ - - - + @@ -910,18 +837,12 @@ - - - - - + - - - + @@ -929,71 +850,58 @@ - + - - - + - + - - - - - + - + - - - + - + - - - + - + - - - - - + - + - - - - - + - + + + + + + - + - + - + - + diff --git a/setup.py b/setup.py index 33d6f2b..bb83cc3 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,16 @@ +import os from distutils.core import setup with open('README.md') as readme: - long_description = readme.read() + long_description = readme.read() + +local_path = os.path.join(os.path.dirname(__file__), 'gooey') + +images = [image for image in os.listdir(os.path.join(local_path, 'images'))] + +languages = [lang + for lang in os.listdir(os.path.join(local_path, 'languages')) + if '.py' not in lang] setup( name='Gooey', @@ -15,8 +24,13 @@ setup( 'gooey.languages', 'gooey.mockapplications', ], + + data_files=[ + ('gooey/images', images), + ('gooey/languages', languages) + ], url='http://pypi.python.org/pypi/Gooey/', license='LICENSE.txt', description='Turn (almost) any command line program into a full GUI application with one line', - long_description=long_description + long_description=long_description )