mailr14595 - /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 September 06, 2011 - 15:14:
Author: bugman
Date: Tue Sep  6 15:14:22 2011
New Revision: 14595

URL: http://svn.gna.org/viewcvs/relax?rev=14595&view=rev
Log:
Modified the setup.py file so that the Mac OS X .app creation code is in the 
mac_setup() function.

This will be used by the scons system later on.


Modified:
    1.3/setup.py

Modified: 1.3/setup.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/setup.py?rev=14595&r1=14594&r2=14595&view=diff
==============================================================================
--- 1.3/setup.py (original)
+++ 1.3/setup.py Tue Sep  6 15:14:22 2011
@@ -38,6 +38,7 @@
 # Python module import.
 from os import getcwd, listdir, sep
 from re import search
+from setuptools import setup
 import sys
 
 # relax module imports.
@@ -45,10 +46,8 @@
 from version import version_full
 
 
-# Mac OS X setup.
-if 'darwin' in sys.platform:
-    # Import the setup tools.
-    from setuptools import setup
+def mac_setup():
+    """Mac OS X setup."""
 
     # The relax settings.
     APP = ['relax_gui_mode.py']
@@ -97,3 +96,8 @@
         },
         setup_requires=['py2app']
     )
+
+
+# Mac OS X.
+if __name__ == '__main__' and 'darwin' in sys.platform:
+    mac_setup()




Related Messages


Powered by MHonArc, Updated Tue Sep 06 15:40:01 2011