Author: bugman Date: Sun Oct 7 15:56:44 2012 New Revision: 17713 URL: http://svn.gna.org/viewcvs/relax?rev=17713&view=rev Log: The C module compilation testing script now accepts the Python version as a first argument. Modified: trunk/devel_scripts/manual_c_module.py Modified: trunk/devel_scripts/manual_c_module.py URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/manual_c_module.py?rev=17713&r1=17712&r2=17713&view=diff ============================================================================== --- trunk/devel_scripts/manual_c_module.py (original) +++ trunk/devel_scripts/manual_c_module.py Sun Oct 7 15:56:44 2012 @@ -3,24 +3,25 @@ # Script for manually compiling the C modules for different Python targets. from os import system +import sys # The target. -target = 'python3.2' +target = sys.argv[1] path = '/data/python/' # The list of build commands to run. cmd = [] # Python.h. -include = '%s/include/%s/' % (path, target) -if target == 'python3.2': +include = '%s/include/python%s/' % (path, target) +if target == '3.2': include = '%s/include/python3.2m/' % path -elif target == 'python3.3': +elif target == '3.3': include = '%s/include/python3.3m/' % path # numpy includes. -numpy_include = '%s/lib/%s/site-packages/numpy/core/include/' % (path, target) +numpy_include = '%s/lib/python%s/site-packages/numpy/core/include/' % (path, target) # Python 3.2 installed in the home directory. cmd.append("gcc -o maths_fns/c_chi2.os -c -I%s -I%s -fPIC maths_fns/c_chi2.c" % (include, numpy_include))