mailr15834 - /1.3/scons/install.py


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

Header


Content

Posted by edward on April 30, 2012 - 16:39:
Author: bugman
Date: Thu Apr 26 16:16:17 2012
New Revision: 15834

URL: http://svn.gna.org/viewcvs/relax?rev=15834&view=rev
Log:
Fix for the scons 'install' target for the byte-compilation of the *.pyc 
files.

Running 'relax --test' no longer byte-compiles the files, so instead 'python 
-m compileall .' is
being used instead.


Modified:
    1.3/scons/install.py

Modified: 1.3/scons/install.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/scons/install.py?rev=15834&r1=15833&r2=15834&view=diff
==============================================================================
--- 1.3/scons/install.py (original)
+++ 1.3/scons/install.py Thu Apr 26 16:16:17 2012
@@ -112,8 +112,11 @@
     ###############
 
     # Run relax to create the *.pyc files.
-    print("\nRunning relax to create the byte-compiled *.pyc files.")
-    system(env['SYMLINK'] + " --test")
+    print("\nCreating the byte-compiled *.pyc files.")
+    python_path = sys.prefix + path.sep + 'bin' + path.sep + 'python' + 
`sys.version_info[0]` + '.' + `sys.version_info[1]`
+    cmd = "cd %s; %s -m compileall ." % (env['RELAX_PATH'], python_path)
+    print(cmd)
+    system(cmd)
 
     # Final print out.
     print("\n\n\n")




Related Messages


Powered by MHonArc, Updated Mon Apr 30 16:40:08 2012