Skip to content

Commit e7e4351

Browse files
committed
Add workaround for --inherit-environ
Specified environ variables aren't passed through correctly. We need to pass LD_LIBRARY_PATH to use the correct libpython from venv-salt-bundle. Tracked upstream in python/pyperformance#139
1 parent de5a140 commit e7e4351

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Containerfile-39-Leap-bundle

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ ENV LD_LIBRARY_PATH=/usr/lib/venv-salt-minion/lib
1111
ENV PYTHONPATH=/usr/lib/venv-salt-minion/local/lib/python3.9/site-packages/
1212
RUN sed -i "s/'venv', '--without-pip'/\0, '--copies'/" /usr/lib/venv-salt-minion/local/lib/python3.9/site-packages/pyperformance/venv.py
1313
RUN sed -i "/.*PYTHONHOME.*/d" /usr/lib/venv-salt-minion/bin/venv-exec.py
14+
# https://github.com/python/pyperformance/issues/139
15+
RUN sed -i "s/\[-2\]/[-1]/" /usr/lib/venv-salt-minion/local/lib/python3.9/site-packages/pyperformance/_benchmark.py
1416
# HACK -- end --
1517

1618

0 commit comments

Comments
 (0)