Changeset 4759 for anuga_core/source/anuga/utilities/compile.py
- Timestamp:
- Oct 29, 2007, 10:55:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/compile.py
r4712 r4759 11 11 """ 12 12 13 import os, string, sys, types 13 14 14 15 def compile(FNs=None, CC=None, LD = None, SFLAG = None, verbose = 1): … … 24 25 """ 25 26 26 27 28 import os, string, sys, types29 30 27 # Input check 31 28 # … … 134 131 libs = os.path.join(sys.exec_prefix,dllfilename) 135 132 136 137 133 138 134 else: … … 334 330 return C 335 331 336 332 def check_python_dll(): 333 """ Check that the python dll is present 334 """ 335 import sys 336 from os import access, F_OK 337 338 version = sys.version[:3] 339 v = version.replace('.','') 340 dllfilename = 'python%s.dll' %(v) 341 libs = os.path.join(sys.exec_prefix,dllfilename) 342 343 if access(libs,F_OK) == 0 : 344 print "%s not present.\nPlease install.\nIt is available on the web." \ 345 %(libs) 346 import sys; sys.exit() 347 337 348 if __name__ == '__main__': 338 349 339 340 import sys, os341 350 from os.path import splitext 342 351 check_python_dll() 343 352 if len(sys.argv) > 1: 344 353 files = sys.argv[1:]
Note: See TracChangeset
for help on using the changeset viewer.