Skip to content

Commit b140d1f

Browse files
authored
Reuse the downloaded python (#607)
Make sure the downloaded python will not be removed by `./gradlew clean` so that it is reusable for the next build.
1 parent 3c8c08f commit b140d1f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@
2525
/unity_dlls/
2626

2727
.DS_Store
28+
29+
external_tools/

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ project.ext {
223223

224224
// Directory for intermediate and final build outputs.
225225
buildDir = new File(scriptDirectory, "build")
226+
// Directory for external tools.
227+
externalToolsDir = new File(scriptDirectory, "external_tools")
226228
// Directory for testing.
227229
testDir = new File(scriptDirectory, "test_output")
228230
// Version of the plugin (update this with CHANGELOG.md on each release).
@@ -282,7 +284,7 @@ project.ext {
282284
symbolDatabaseExtension = pdbSupported ? ".pdb" : ".dll.mdb"
283285
// Changelog file.
284286
changelog = new File(scriptDirectory, "CHANGELOG.md")
285-
pythonBootstrapDir = new File(buildDir, "python_bootstrap")
287+
pythonBootstrapDir = new File(externalToolsDir, "python_bootstrap")
286288
pythonBinDir = new File(new File(pythonBootstrapDir, "python"), "bin")
287289
// Python binary after it has been bootstrapped.
288290
pythonExe = new File(pythonBinDir, "python3")

0 commit comments

Comments
 (0)