Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- a/scripts/Dockerfile Sun Nov 07 01:47:07 2021 -0500 +++ b/scripts/Dockerfile Sun Nov 07 12:19:27 2021 -0500 @@ -55,10 +55,14 @@ # or install in python3 standard directories from pypi using pip # import from global/command line ARG source -RUN set -xv && if [ "$source" = "local" ] || [ "$source" = "pypi" ]; then :; \ +RUN set -xv && if [ "$source" = "local" ] || \ + [ "$source" = "pypi" ] || \ + [ "$source" = "local_pip" ]; then :; \ else echo "invalid value for source: $source"; \ echo "must be local or pypi"; exit 1; fi; \ if [ "$source" = "local" ]; then cd install && ./setup.py install; fi; \ + if [ "$source" = "local_pip" ]; then cd install && pip install \ + --use-feature=in-tree-build . ; fi; \ if [ "$source" = "pypi" ]; then pip install roundup; \ cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \ /usr/local/share; fi
