Move root car to pycar, put other pycar back to car.
This commit is contained in:
28
pycar/build.gradle
Normal file
28
pycar/build.gradle
Normal file
@@ -0,0 +1,28 @@
|
||||
configurations {
|
||||
python {
|
||||
canBeResolved = true
|
||||
canBeConsumed = false
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
python project(path: ':protobuf', configuration: 'python')
|
||||
}
|
||||
|
||||
task copyPythonCode(type: Copy, dependsOn: configurations.python){
|
||||
// Copy python protobuf code from proto project.
|
||||
from zipTree(configurations.python.asPath)
|
||||
into 'src'
|
||||
}
|
||||
|
||||
task build(type: Exec, dependsOn: copyPythonCode) {
|
||||
executable 'python3'
|
||||
args 'setup.py', 'bdist_wheel'
|
||||
}
|
||||
|
||||
task clean {
|
||||
doLast {
|
||||
delete 'dist'
|
||||
delete 'build'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user