[PyQt] SIP Make install on windows

Phil Thompson phil at riverbankcomputing.com
Wed Dec 23 12:10:35 GMT 2009


On Mon, 21 Dec 2009 23:17:10 -0500, F Bourbonnais <bouf10pub at rubico.info>
wrote:
> 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
> """

Looks like you have a trailing '\' or '/' on a directory name somewhere.

Phil


More information about the PyQt mailing list