mailr15782 - /1.3/setup.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 18, 2012 - 19:40:
Author: bugman
Date: Wed Apr 18 19:40:46 2012
New Revision: 15782

URL: http://svn.gna.org/viewcvs/relax?rev=15782&view=rev
Log:
Fix for the py2app setup.py script for Mac OS X application creation.

The list of data files to include with the app is now properly formatted.


Modified:
    1.3/setup.py

Modified: 1.3/setup.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/setup.py?rev=15782&r1=15781&r2=15782&view=diff
==============================================================================
--- 1.3/setup.py (original)
+++ 1.3/setup.py Wed Apr 18 19:40:46 2012
@@ -129,6 +129,7 @@
             rel_path = relpath(dirpath, cwd)
 
             # Loop over the files.
+            file_list = []
             for file in filenames:
                 # Skip names starting with '.'.
                 if search('^\.', file):
@@ -138,8 +139,11 @@
                 if file in blacklist_files:
                     continue
 
-                # Append a tuple of the destination directory and the file.
-                data_files.append((rel_path, "%s%s%s" % (rel_path, sep, 
file)))
+                # Append the file with path to the list.
+                file_list.append("%s%s%s" % (rel_path, sep, file))
+
+            # Append a tuple of the destination directory and the files.
+            data_files.append((rel_path, file_list))
 
         # Return the data files.
         return data_files
@@ -230,7 +234,6 @@
             'dist_dir': "../build/dist",
             'packages': ['wx', 'numpy', 'scipy'],
             'site_packages': True,
-            'resources': 'docs/COPYING',
             'includes': self.get_includes(),
             'excludes': ['build', 'dist'],
             'plist': {




Related Messages


Powered by MHonArc, Updated Wed Apr 18 22:40:01 2012