comparison scripts/Dockerfile @ 6527:5ad7fb912227

issue2551167 - update wheel support. New method for finding locale and template files when installed as a wheel. It acts more like existing code for egg support. Add build-arg source=local_pip for building using pip using the local files rather than downloading from pypi. Useful for testing these changes. Since it's developer testing code and still has the downside that man pages aren't accessible, I am not documenting it as an option.
author John Rouillard <rouilj@ieee.org>
date Sun, 07 Nov 2021 12:19:27 -0500
parents 49d26e77d173
children 6bf22b7b23fe
comparison
equal deleted inserted replaced
6526:3c8322e3fe25 6527:5ad7fb912227
53 # verify source has one of two valid values then 53 # verify source has one of two valid values then
54 # install in python3 standard directories from local copy 54 # install in python3 standard directories from local copy
55 # or install in python3 standard directories from pypi using pip 55 # or install in python3 standard directories from pypi using pip
56 # import from global/command line 56 # import from global/command line
57 ARG source 57 ARG source
58 RUN set -xv && if [ "$source" = "local" ] || [ "$source" = "pypi" ]; then :; \ 58 RUN set -xv && if [ "$source" = "local" ] || \
59 [ "$source" = "pypi" ] || \
60 [ "$source" = "local_pip" ]; then :; \
59 else echo "invalid value for source: $source"; \ 61 else echo "invalid value for source: $source"; \
60 echo "must be local or pypi"; exit 1; fi; \ 62 echo "must be local or pypi"; exit 1; fi; \
61 if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \ 63 if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \
64 if [ "$source" = "local_pip" ]; then cd install && pip install \
65 --use-feature=in-tree-build . ; fi; \
62 if [ "$source" = "pypi" ]; then pip install roundup; \ 66 if [ "$source" = "pypi" ]; then pip install roundup; \
63 cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \ 67 cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \
64 /usr/local/share; fi 68 /usr/local/share; fi
65 69
66 # build a new smaller docker image for execution. Build image above 70 # build a new smaller docker image for execution. Build image above

Roundup Issue Tracker: http://roundup-tracker.org/