[PyQt] SIP Make install on windows

F Bourbonnais bouf10pub at rubico.info
Tue Dec 22 04:17:10 GMT 2009


I'm trying to package a Python binding using SIP. All is working fine on 
GNU/Linux but on Windows, the "mingw32-make install" doesn't copy files if the 
destination directory already exists.

The problem seems to be in the generated Makefile:

  * Each "copy /y ..." lines placed after a "@if not exit" are skipped.
  * But if I put a blank line after the @if line, it works!

Context:

  * SIP version 4.9.3 compiled with "-p win32-g++"
  * mingw32-make version 3.81
  * Windows XP SP3


The Makefile (part of):
"""
install:
	@$(MAKE) -C build install
	@if not exist C:\Python26\sip\ mkdir C:\Python26\sip\
	copy /y test.sip C:\Python26\sip\test.sip
	@if not exist C:\Python26\Lib\site-packages\ mkdir C:\Python26\Lib\site-
packages\
	copy /y testconfig.py C:\Python26\Lib\site-packages\testconfig.py
"""

Thanks,


More information about the PyQt mailing list