Skip to content

Commit 585a9b5

Browse files
committed
issue2551163 Docker/containerization support - pypi fix
pypi install is putting the stuff that should be in /usr/local/share into site-packages/usr/local/share/..... So roundup-admin can't find templates etc. This patch links the files from the installed location to /usr/local/share. setuptools is a pain. Issue opened to fix this in setup.py.
1 parent 510e95e commit 585a9b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ RUN set -xv && if [ "$source" = "local" ] || [ "$source" = "pypi" ]; then :; \
5959
else echo "invalid value for source: $source"; \
6060
echo "must be local or pypi"; exit 1; fi; \
6161
if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \
62-
if [ "$source" = "pypi" ]; then pip install roundup; fi
62+
if [ "$source" = "pypi" ]; then pip install roundup; \
63+
cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \
64+
/usr/local/share; fi
6365

6466
# build a new smaller docker image for execution. Build image above
6567
# is 1G in size.

0 commit comments

Comments
 (0)