Move car python code into src subdirectory
This commit is contained in:
7
car/.gitignore
vendored
7
car/.gitignore
vendored
@@ -1,7 +0,0 @@
|
|||||||
**/*env
|
|
||||||
**.vscode
|
|
||||||
**.DS_STORE
|
|
||||||
**/__pycache__
|
|
||||||
build
|
|
||||||
dist
|
|
||||||
CarController.egg-info
|
|
||||||
@@ -12,5 +12,9 @@ dependencies {
|
|||||||
task copyPythonCode(type: Copy, dependsOn: configurations.python){
|
task copyPythonCode(type: Copy, dependsOn: configurations.python){
|
||||||
// Copy python protobuf code from proto project.
|
// Copy python protobuf code from proto project.
|
||||||
from zipTree(configurations.python.asPath)
|
from zipTree(configurations.python.asPath)
|
||||||
into '.'
|
into './src'
|
||||||
|
}
|
||||||
|
|
||||||
|
task build(type: Exec, dependsOn: copyPythonCode) {
|
||||||
|
commandLine 'python3', 'setup.py', 'bdist_wheel'
|
||||||
}
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/control/motorService.proto
|
|
||||||
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/slam/SlamController.proto
|
|
||||||
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/tracking/lidar_tracker.proto
|
|
||||||
@@ -2,7 +2,8 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="CarController",
|
name="CarController",
|
||||||
packages=find_packages(),
|
package_dir={'': 'src'},
|
||||||
|
packages=find_packages('src'),
|
||||||
author="Michael Pivato",
|
author="Michael Pivato",
|
||||||
version="0.1"
|
version="0.1"
|
||||||
)
|
)
|
||||||
|
Before Width: | Height: | Size: 13 MiB After Width: | Height: | Size: 13 MiB |
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
Reference in New Issue
Block a user