Skip to content

Commit 1049331

Browse files
committed
install deps
1 parent 4f76962 commit 1049331

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

photonlib-python-examples/run.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ if exist build rmdir /S /Q build
88
python setup.py bdist_wheel
99
popd
1010

11+
:: Setup robotpy
12+
pip install robotpy
13+
14+
1115
:: Add the output directory to PYTHONPATH to make sure it gets picked up ahead of any other installs
1216
set PHOTONLIBPY_ROOT=%~dp0..\photon-lib\py
1317
set PYTHONPATH=%PHOTONLIBPY_ROOT%
@@ -27,5 +31,8 @@ if "%~1"=="" (
2731
:: Move to to the right example folder
2832
cd %~1
2933

34+
:: Setup project
35+
pip install .
36+
3037
:: Run the example
3138
robotpy sim

photonlib-python-examples/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ popd
1111
export PHOTONLIBPY_ROOT=../photon-lib/py
1212
export PYTHONPATH=$PHOTONLIBPY_ROOT
1313

14+
# Setup robotpy
15+
pip install robotpy
16+
1417
# If an example to run is not provided, run all examples
1518
if [ $# -eq 0 ]
1619
then
@@ -26,5 +29,8 @@ fi
2629
# Move to the right example folder
2730
cd $1
2831

32+
# Setup project
33+
pip install .
34+
2935
# Run the example
3036
robotpy sim

0 commit comments

Comments
 (0)