[hdf-compass] 149/295: Fix and rename for setup.py for p2app

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.

commit 82ec34f29bd9c0348e01b4001915d2b38b4498a9
Author: giumas <giumas at yahoo.it>
Date:   Sat Oct 17 13:14:20 2015 -0400

    Fix and rename for setup.py for p2app
---
 setup.py => setup.py2app.py | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py2app.py
similarity index 83%
rename from setup.py
rename to setup.py2app.py
index 16df9aa..bb918ef 100644
--- a/setup.py
+++ b/setup.py2app.py
@@ -18,19 +18,27 @@ Usage:
 
 The output is HDFCompass.app, in the dist/ folder.
 
-After running setp.py and verifying the install image, run:
+After running setup.py2app.py and verifying the install image, run:
     appdmg spec.json HDFCompass.dmg
 To create dmg install file.  The appdmg utility can be installed from npm: 
     npm install -g appdmg
 
 
-PyInstaller, for Windows and Linux distribution, does not use setup.py.
+PyInstaller, for Windows and Linux distribution, does not use setup.py2app.py.
 """
 
 from setuptools import setup
+from glob import glob
+import os
+	
 
 APP = ['HDFCompass.py']
-DATA_FILES = []
+compass_viewer_folder = os.path.join('hdf_compass', 'compass_viewer', 'icons')
+compass_model_folder = os.path.join('hdf_compass', 'compass_model', 'icons')
+DATA_FILES = [
+	(compass_viewer_folder, glob(os.path.join(compass_viewer_folder, '*.png'))),
+	(compass_model_folder, glob(os.path.join(compass_model_folder, '*.png'))),
+]
 PLIST = {   "CFBundleDocumentTypes": [ { "CFBundleTypeExtensions": ["hdf5","h5"],
                                       "CFBundleTypeName": "HDF5 Data File",
                                       "CFBundleTypeRole": "Viewer"} ],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git



More information about the debian-science-commits mailing list