Skip to content

Commit 5517fbc

Browse files
committed
add python38.dll copy step for the debug builds to allow successfully appveyor CI builds
1 parent 8d4edd3 commit 5517fbc

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

PythonScript.Tests/PythonScript.Tests.vcxproj

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@
147147
</AdditionalLibraryDirectories>
148148
</Link>
149149
<PostBuildEvent>
150-
<Command>$(TargetDir)$(TargetFileName)</Command>
150+
<Command>copy $(PythonBase)\python38.dll $(TargetDir)
151+
$(TargetDir)$(TargetFileName)
152+
</Command>
151153
</PostBuildEvent>
152154
</ItemDefinitionGroup>
153155
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -169,7 +171,9 @@
169171
</AdditionalLibraryDirectories>
170172
</Link>
171173
<PostBuildEvent>
172-
<Command>$(TargetDir)$(TargetFileName)</Command>
174+
<Command>copy $(PythonBaseX64)\python38.dll $(TargetDir)
175+
$(TargetDir)$(TargetFileName)
176+
</Command>
173177
</PostBuildEvent>
174178
</ItemDefinitionGroup>
175179
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PythonDebug|Win32'">
@@ -191,7 +195,9 @@
191195
</AdditionalLibraryDirectories>
192196
</Link>
193197
<PostBuildEvent>
194-
<Command>$(TargetDir)$(TargetFileName)</Command>
198+
<Command>copy $(PythonBase)\python38.dll $(TargetDir)
199+
$(TargetDir)$(TargetFileName)
200+
</Command>
195201
</PostBuildEvent>
196202
</ItemDefinitionGroup>
197203
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='PythonDebug|x64'">
@@ -213,7 +219,9 @@
213219
</AdditionalLibraryDirectories>
214220
</Link>
215221
<PostBuildEvent>
216-
<Command>$(TargetDir)$(TargetFileName)</Command>
222+
<Command>copy $(PythonBaseX64)\python38.dll $(TargetDir)
223+
$(TargetDir)$(TargetFileName)
224+
</Command>
217225
</PostBuildEvent>
218226
</ItemDefinitionGroup>
219227
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">

PythonScript/project/PythonSettings_appveyor.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<PropertyGroup Label="UserMacros">
55
<BoostBase></BoostBase>
66
<BoostPythonLibPath></BoostPythonLibPath>
7-
<PythonBase>$(SolutionDir)/packages/pythonx86.3.8.5/tools</PythonBase>
8-
<PythonBaseX64>$(SolutionDir)/packages/python.3.8.5/tools</PythonBaseX64>
7+
<PythonBase>$(SolutionDir)packages\pythonx86.3.8.5\tools</PythonBase>
8+
<PythonBaseX64>$(SolutionDir)packages\python.3.8.5\tools</PythonBaseX64>
99
<PythonLibPath>$(PythonBase)\libs</PythonLibPath>
1010
<PythonLibPathX64>$(PythonBaseX64)\libs</PythonLibPathX64>
1111
<HtmlHelpBase>C:\Program Files (x86)\HTML Help Workshop</HtmlHelpBase>

0 commit comments

Comments
 (0)