Skip to content

Commit

Permalink
GH-15772 fix copyMainDist task for h2o-py
Browse files Browse the repository at this point in the history
  • Loading branch information
valenad1 committed Apr 12, 2024
1 parent fe2dc22 commit 034506b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions h2o-py/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,17 @@ task buildDist(type: Exec, dependsOn: [verifyDependencies, createVersionFiles, c
commandLine getOsSpecificCommandLine([pythonexe, "setup.py", "bdist_wheel"])
}

task copyMainDist(type: Copy, dependsOn: [buildDist]) {
from ("${buildDir}/main/") {
include "dist/**"
// I don't know why the task with type: Copy doesn't run after buildDist for gradle 8 even though its working for other projects (e.g. h2o-py-cloud-extension)
// I was able to properly copy the wheel only this way.
task copyMainDist(dependsOn: [buildDist]) {
doLast{
copy {
from("${buildDir}/main/") {
include "dist/**"
}
into "${buildDir}"
}
}
into "${buildDir}"
}

task buildClientDist(type: Exec, dependsOn: [verifyDependencies, createVersionFiles, copyClientSrcFiles]) {
Expand Down

0 comments on commit 034506b

Please sign in to comment.