Skip to content

Commit fddcb19

Browse files
Install Pyparsing-2.0.2 Before Build And Bundle (#42)
* Pass Env Variable to All Build And Bundle Commands * Update PYTHONPATH Env variable * Fix Env Variable * Pass env Variable to setup command * Pass Exec Options to Setup * Install pyparsing to default path
1 parent ec05954 commit fddcb19

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function fetchRosinstallDependencies() {
9393
await exec.exec("bash", ["-c", `ln -snf /usr/share/zoneinfo/${timezone} /etc/localtime`]);
9494
await exec.exec("bash" , ["-c", `echo ${timezone} > /etc/timezone`]);
9595
}
96-
await exec.exec("bash", ["-c", `scripts/setup.sh --install-ros ${ROS_DISTRO}`]);
96+
await exec.exec("bash", ["-c", `scripts/setup.sh --install-ros ${ROS_DISTRO}`], getWorkingDirParentExecOptions());
9797
await loadROSEnvVariables();
9898
await exec.exec("apt-get", ["update"]);
9999
//zip required for prepare_sources step.
@@ -133,8 +133,9 @@ async function bundle() {
133133
}
134134

135135
async function installPyparsing() {
136-
//install pyparsing-2.0.2 to a local directory so that it can be added to PYTHONPATH env variable
137-
await exec.exec("bash", ["-c", `pip3 install --install-option="--prefix=/home/pypackages" pyparsing==2.0.2`], getWorkingDirExecOptions());
136+
// install pyparsing-2.0.2 since pyparsing-3.0 is no supported by python pyconfig
137+
// https://github.com/pypa/packaging/commit/20cd09e00917adbc4afeaa753be831a6bc2740f7
138+
await exec.exec("bash", ["-c", `pip3 install pyparsing==2.0.2`], getWorkingDirExecOptions());
138139
}
139140

140141
async function run() {

0 commit comments

Comments
 (0)