File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed
actions/install_python_packages Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,12 @@ description: 'Install specified Python packages in a virtual environment'
44inputs :
55 packages :
66 description : ' A space-separated list of Python packages to install.'
7- required : true
7+ required : false
8+ default : ' '
9+ requirements-file :
10+ description : ' Path to a requirements.txt file listing Python packages to install.'
11+ required : false
12+ default : ' '
813 python-version :
914 description : ' The Python version to use (e.g., 3.12).'
1015 required : true
3641
3742 - name : Install Python packages
3843 run : |
39- pip install ${{ inputs.packages }}
44+ if [ -n "${{ inputs.requirements-file }}" ]; then
45+ pip install -r ${{ inputs.requirements-file }}
46+ fi
47+
48+ if [ -n "${{ inputs.packages }}" ]; then
49+ pip install ${{ inputs.packages }}
50+ fi
51+
4052 shell : bash
Original file line number Diff line number Diff line change 4545 - name : Install required python packages
4646 uses : ./.github/actions/install_python_packages
4747 with :
48+ <<<<<<< HEAD
4849 packages : " catkin_pkg lark-parser empy colcon-common-extensions"
50+ =======
51+ requirements-file : " ${{ github.workspace }}/requirements.txt"
52+ >>>>>>> 0ca6886 (Add requirements.txt file for Python dependencies (#40))
4953 python-version : ${{ inputs.python-version }}
5054 use-sudo : " true"
5155
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ sudo apt install -y rsync pip git gcc-arm-none-eabi cmake
1818This component needs ` colcon ` and other Python 3 packages in order to build micro-ROS packages:
1919
2020``` bash
21+ <<< <<< < HEAD
2122pip3 install catkin_pkg lark-parser empy colcon-common-extensions
23+ =======
24+ pip3 install -r requirements.txt
25+ >>>>>>> 0ca6886 (Add requirements.txt file for Python dependencies (# 40))
2226` ` `
2327
2428# # Usage
Original file line number Diff line number Diff line change 1+ catkin_pkg
2+ lark-parser
3+ empy == 3.3.4
4+ colcon-common-extensions
You can’t perform that action at this time.
0 commit comments