# Sconstruct file for P4Python # see www.scons.org for details. import glob import os import sys def dist_name(): "Work out the name of the built windows executable" sys.path.insert(0, '.') from setup import NAME, VERSION ver = sys.version[0:3] name = NAME + "-" + VERSION + ".win32-py" + ver + ".exe" return os.path.join('dist', name) def dist_targets(target, source, env): target = [dist_name()] return target, source create_dist = Builder(action = 'setup.py bdist_wininst', emitter = dist_targets) files = ['p4.py', 'setup.py', 'P4Clientmodule.cc', 'P4.html', 'CHANGELOG.txt', 'LICENSE.txt', 'DEBUG.txt'] files.extend(glob.glob('test/*.py')) files.extend(glob.glob('utils/*.py')) zip_file = 'p4python.zip' env = Environment() env.Append(BUILDERS = {'Dist' : create_dist}) dist = dist_name() env.Dist('setup.py') Depends(dist, files) env.Zip(zip_file, files) # Default targets to build Default(zip_file, dist)
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 5750 | Robert Cowham | New branch | ||
//guest/robert_cowham/perforce/API/python/main/sconstruct | |||||
#4 | 5059 | Robert Cowham | Tidied docs and ensured added to .zip file. | ||
#3 | 5057 | Robert Cowham |
- Added P4Error class and catch all errors - shouldn't see P4Client.error any more! - Raise the error when appropriate. - Added translate() function to allow working with Internationalised servers. - Fix problem with diff2 and diff |
||
#2 | 4771 | Robert Cowham |
Revised build procedures. Release updated binaries from previous checkin. |
||
#1 | 4766 | Robert Cowham |
Rather better documentation (and license and changelog). Reorganised dirs. Added .zip file and windows binary installer. |