Changeset 29
- Timestamp:
- 02/07/04 16:50:06 (5 years ago)
- Files:
-
- 04/tools/build.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
04/tools/build.py
r27 r29 63 63 # compile C++ extension 64 64 65 for python_version in ['/usr/include/python2.1', 66 '/usr/local/include/python2.0', '/usr/local/include/python2.2']: 65 for python_version in ['2.1', '2.2', '2.3']: 67 66 os.chdir(targetdir) 68 filelist = ['matchC ', 'sgfparserC']67 filelist = ['matchC.so'] 69 68 70 69 for file in filelist: 71 os.system(' gcc %s.cc -O2 -I%s -fpic -shared -o %s.so' % (file, python_version, file))70 os.system('python%s setup-ext.py build' % (python_version)) 72 71 73 os.system('tar cf Cext%s .tar %s' % (python_version[-3:], join([f + '.so'for f in filelist], ' ')))74 os.system('gzip -f Cext%s .tar' % python_version[-3:])75 os.system('cp Cext%s .tar.gz %s' % (python_version[-3:], htmldir))72 os.system('tar cf Cext%s-%s.tar -C build/lib.linux-i686-%s %s' % (version, python_version, python_version, join([f for f in filelist], ' '))) 73 os.system('gzip -f Cext%s-%s.tar' % (version,python_version)) 74 os.system('cp Cext%s-%s.tar.gz %s' % (version,python_version[-3:], htmldir)) 76 75 77 76 def windows(): … … 144 143 print 'built others' 145 144 elif target == 'html': 146 os.system('cp %s kombilo%s/doc/tutorial.html %s' % (base, version, htmldir))147 os.system('cp %s kombilo%s/doc/*.jpg %s' % (base, version, htmldir))145 os.system('cp %s/doc/tutorial.html %s' % (sourcedir, version, htmldir)) 146 os.system('cp %s/doc/*.jpg %s' % (sourcedir, version, htmldir)) 148 147 print 'copied tutorial to html'
