Skip to content

Commit f384bee

Browse files
committed
Try to identify where scripts are being installed and set proper path
1 parent 408e711 commit f384bee

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/test_geos_integration.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ jobs:
5050
- name: Install Build Dependencies
5151
run: |
5252
apt-get update
53-
apt-get install -y make python3-numpy python3-dev python3-venv
53+
apt-get install -y make python3-numpy python3-dev python3-venv python3-pip
54+
55+
# Ensure pip installs scripts to /usr/local/bin
56+
export PATH="/usr/local/bin:$PATH"
57+
echo "PATH=/usr/local/bin:$PATH" >> $GITHUB_ENV
5458
5559
- name: Setup test environment
5660
run: |
@@ -115,6 +119,7 @@ jobs:
115119
echo "=== Test 1: Direct setupPythonEnvironment.bash execution ==="
116120
export SETUPTOOLS_USE_DISTUTILS=stdlib
117121
export PIP_DISABLE_PIP_VERSION_CHECK=1
122+
export PATH="/usr/local/bin:$PATH"
118123
mkdir -p bin_direct
119124
120125
bash "$SETUP_PYTHON_ENVIRONMENT_SCRIPT" \
@@ -123,11 +128,26 @@ jobs:
123128
--python-pkg-branch "$CURRENT_GEOSPYTHONPACKAGES_BRANCH_NAME" \
124129
--verbose
125130
131+
echo "=== Checking installation paths ==="
132+
echo "PATH: $PATH"
133+
echo "Scripts in /usr/local/bin:"
134+
ls -la /usr/local/bin/ | grep -E "(preprocess_xml|format_xml)" || echo "No scripts found in /usr/local/bin"
135+
echo "Scripts in /root/.local/bin:"
136+
ls -la /root/.local/bin/ 2>/dev/null | grep -E "(preprocess_xml|format_xml)" || echo "No scripts found in /root/.local/bin"
137+
echo "Python site-packages scripts:"
138+
find /usr/local/lib/python3.10/dist-packages -name "preprocess_xml*" -o -name "format_xml*" || echo "No scripts found in site-packages"
139+
126140
if [ -f "bin_direct/preprocess_xml" ] && [ -f "bin_direct/format_xml" ]; then
127141
echo "Direct setupPythonEnvironment.bash succeeded!"
128142
else
129-
echo "Direct method failed to create Python tools"
130-
exit 1
143+
echo "Direct method failed to create Python tools, checking if they exist elsewhere..."
144+
if command -v preprocess_xml >/dev/null 2>&1 && command -v format_xml >/dev/null 2>&1; then
145+
echo "Scripts are installed but not linked properly"
146+
exit 1
147+
else
148+
echo "Scripts are not installed at all"
149+
exit 1
150+
fi
131151
fi
132152
133153
- name: "Test 2: make geosx_python_tools"

0 commit comments

Comments
 (0)