summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2015-11-07 20:00:26 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-11-10 17:37:09 +0200
commitb1dbbd32ebcdafd046e8d69ec29a1565f42765cb (patch)
tree0e22bb2f17c51a953d90256217bf1a1fd8ec9841
parent1b9d161f9495fe685da8011ce7cf45c6a3009ee5 (diff)
downloadmicropython-b1dbbd32ebcdafd046e8d69ec29a1565f42765cb.tar.gz
micropython-b1dbbd32ebcdafd046e8d69ec29a1565f42765cb.zip
windows: Allow specifying the python executable to use for msvc builds
This defaults to 'python' but can be now overridden if needed
-rw-r--r--windows/msvc/genhdr.targets5
1 files changed, 3 insertions, 2 deletions
diff --git a/windows/msvc/genhdr.targets b/windows/msvc/genhdr.targets
index 90054c0b60..93bb74ee9d 100644
--- a/windows/msvc/genhdr.targets
+++ b/windows/msvc/genhdr.targets
@@ -10,6 +10,7 @@
<PropertyGroup>
<DestDir>$(PyBuildDir)genhdr\</DestDir>
<PySrcDir>$(PyBaseDir)py\</PySrcDir>
+ <PyPython Condition="'$(PyPython)' == ''">python</PyPython>
</PropertyGroup>
<Target Name="MakeDestDir">
@@ -27,7 +28,7 @@
<PyIncDirs Include="$(PyIncDirs)"/>
</ItemGroup>
<Exec Command="cl /nologo /I@(PyIncDirs, ' /I') /Fi$(PreProc) /P $(PySrcDir)qstrdefs.h"/>
- <Exec Command="python $(PySrcDir)makeqstrdata.py $(PreProc) $(QstrDefs) > $(TmpFile)"/>
+ <Exec Command="$(PyPython) $(PySrcDir)makeqstrdata.py $(PreProc) $(QstrDefs) > $(TmpFile)"/>
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
</Target>
@@ -36,7 +37,7 @@
<DestFile>$(DestDir)mpversion.h</DestFile>
<TmpFile>$(DestFile).tmp</TmpFile>
</PropertyGroup>
- <Exec Command="python $(PySrcDir)makeversionhdr.py $(TmpFile)"/>
+ <Exec Command="$(PyPython) $(PySrcDir)makeversionhdr.py $(TmpFile)"/>
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
</Target>