<div dir="ltr">There's a bug. In version 4.16, build macros are parsed before build_platform is applied from the commandline (i.e., --platform). The below patch fixes this regression (I've verified that this revision works).<div>
<div><br></div><div><div>--- .\configure.py.old<span class="" style="white-space:pre"> </span>2014-05-19 11:54:44.374585800 +0200</div><div>+++ .\configure.py<span class="" style="white-space:pre"> </span>2014-05-19 11:47:28.462595600 +0200</div>
<div>@@ -779,15 +779,6 @@</div><div> else:</div><div> opts.universal = ''</div><div> </div><div>- # Get the platform specific macros for building.</div><div>- macros = siputils.parse_build_macros(</div>
<div>- os.path.join(src_dir, "specs", build_platform), build_macro_names,</div><div>- args)</div><div>-</div><div>- if macros is None:</div><div>- siputils.error("Unsupported macro name specified. Use the --show-build-macros flag to see a list of supported macros.")</div>
<div>- sys.exit(2)</div><div>-</div><div> # Apply the overrides from any configuration file.</div><div> global plat_bin_dir, plat_py_conf_inc_dir, plat_py_inc_dir</div><div> global plat_py_lib_dir, plat_py_site_dir, plat_sip_dir</div>
<div>@@ -836,6 +827,15 @@</div><div> if opts.sipsipdir is not None:</div><div> sip_sip_dir = opts.sipsipdir</div><div> </div><div>+ # Get the platform specific macros for building.</div><div>+ macros = siputils.parse_build_macros(</div>
<div>+ os.path.join(src_dir, "specs", build_platform), build_macro_names,</div><div>+ args)</div><div>+</div><div>+ if macros is None:</div><div>+ siputils.error("Unsupported macro name specified. Use the --show-build-macros flag to see a list of supported macros.")</div>
<div>+ sys.exit(2)</div><div>+</div><div> # Fix the name of the sip module.</div><div> global sip_module_base</div><div> </div></div><div><br></div></div><div>Arve</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, May 19, 2014 at 10:23 AM, Arve Knudsen <span dir="ltr"><<a href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Mon, May 19, 2014 at 9:50 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 19/05/2014 8:36 am, Arve Knudsen wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
Hi<br>
<br>
I'm trying to install sip 4.16-snapshot-f6acb8ed7b65, but the<br>
configuration phase emits Makefiles for MSVC even though I specify<br>
win32-g++ as the platform:<br>
<br></div>
python .configure.py -p win32-g++<br>
<br>
For example, sipgenMakefile starts with the following definitions:<div><br>
<br>
TARGET = sip.exe<br>
OFILES = main.obj transform.obj gencode.obj extracts.obj<br>
export.obj heap.obj parser.obj lexer.obj<br>
HFILES = sip.h parser.h<br>
<br>
CC = cl<br>
CXX = cl<br>
<br>
As you can see, the compilers (CC/CXX) are MSVC.<br>
</div></blockquote>
<br>
Works fine for me.<br></blockquote><div><br></div></div><div>But what am I doing wrong then? All I do is the following:</div><div><br></div><div> cd .\sip-4.16-snapshot-f6acb8ed7b65 </div><div class=""><div> python .\configure.py -p win32-g++<br>
</div><div><br></div></div><div>My Python version is 3.4.0. The exact same procedure with sip 4.15 produces Makefiles for MinGW.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Arve</div></font></span></div>
</div></div>
</blockquote></div><br></div>