Download the sip binary (if it's not already present) to be used, to ensure that all builds are using the same version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-10-11 00:38:26 +00:00
parent 6caf9d8b94
commit fb54a7fb92
5 changed files with 217 additions and 17 deletions

View File

@@ -26,26 +26,11 @@ from distutils.spawn import spawn
runSilently = False
#----------------------------------------------------------------------
# Set some defaults based on the environment or platform
if os.environ.get('SIP'):
SIPdefault = os.environ.get('SIP')
elif os.name == 'nt':
SIPdefault = 'c:/projects/sip/sip/sipgen/sip.exe'
else:
path_sip = commands.getoutput("which sip")
if os.path.exists(path_sip):
SIPdefault = path_sip
else:
SIPdefault = '/projects/sip/sip/sipgen/sip'
#----------------------------------------------------------------------
class Configuration(object):
SIP = SIPdefault # Where is the sip binary?
##SIP = SIPdefault # Where is the sip binary?
SIPINC = 'sip/siplib' # Use our local copy of sip.h
SIPGEN = 'sip/gen' # Where the generated .sip files go
SIPFILES = 'sip' # where to find other sip files for %Include or %Import