mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Ensure that the .py file exists before deciding to skip running sip
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
6
build.py
6
build.py
@@ -702,17 +702,17 @@ def sip(options, args):
|
||||
src_name = src_name.replace('\\', '/')
|
||||
base = os.path.basename(os.path.splitext(src_name)[0])
|
||||
sbf = posixjoin(cfg.SIPOUT, base) + '.sbf'
|
||||
pycode = base[1:] # remove the leading _
|
||||
pycode = posixjoin(cfg.PKGDIR, pycode) + '.py'
|
||||
|
||||
# Check if any of the included files are newer than the .sbf file
|
||||
# produced by the previous run of sip. If not then we don't need to
|
||||
# run sip again.
|
||||
etg = loadETG(posixjoin('etg', base + '.py'))
|
||||
sipFiles = getSipFiles(etg.INCLUDES)
|
||||
if not newer_group(sipFiles, sbf):
|
||||
if not newer_group(sipFiles, sbf) and os.path.exists(pycode):
|
||||
continue
|
||||
|
||||
pycode = base[1:] # remove the leading _
|
||||
pycode = posixjoin(cfg.PKGDIR, pycode) + '.py'
|
||||
pycode = '-X pycode'+base+':'+pycode
|
||||
sip = getSipCmd()
|
||||
cmd = '%s %s -c %s -b %s %s %s' % \
|
||||
|
||||
Reference in New Issue
Block a user