Skip to content

Commit bcb9788

Browse files
committed
fix github build issues due to missing python27.dll beside PythonScript.Tests.exe
1 parent 74265b7 commit bcb9788

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
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)\python27.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)\python27.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)\python27.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)\python27.dll $(TargetDir)
223+
$(TargetDir)$(TargetFileName)
224+
</Command>
217225
</PostBuildEvent>
218226
</ItemDefinitionGroup>
219227
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">

PythonScript.sln

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 15
33
VisualStudioVersion = 15.0.27130.2036
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NppPlugin", "NppPlugin\project\NppPlugin.vcxproj", "{69CC76EB-0183-4622-929C-02E860A66A23}"
66
EndProject
77
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PythonScript", "PythonScript\project\PythonScript2010.vcxproj", "{8ACDC1F7-75BD-44CA-9F35-6521DEDC5DF6}"
8+
ProjectSection(ProjectDependencies) = postProject
9+
{69CC76EB-0183-4622-929C-02E860A66A23} = {69CC76EB-0183-4622-929C-02E860A66A23}
10+
EndProjectSection
811
EndProject
912
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PythonScript.Tests", "PythonScript.Tests\PythonScript.Tests.vcxproj", "{141C090A-DF76-456E-8B54-1E2C9E5AE75A}"
1013
ProjectSection(ProjectDependencies) = postProject

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/python2x86.2.7.18/tools</PythonBase>
8-
<PythonBaseX64>$(SolutionDir)/packages/python2.2.7.18/tools</PythonBaseX64>
7+
<PythonBase>$(SolutionDir)packages\python2x86.2.7.18\tools</PythonBase>
8+
<PythonBaseX64>$(SolutionDir)packages\python2.2.7.18\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)