@@ -74,30 +74,30 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
74
74
ARG VERBOSE
75
75
76
76
RUN [ -z "${VERBOSE}" ] || set -xv; \
77
- CWD=$PWD && \
77
+ CWD=" $PWD" && \
78
78
upgrades=$(python3 -m pip --no-cache --disable-pip-version-check \
79
79
list --outdated | awk 'NR > 2 {print $1}' ); \
80
80
if [ -n "$upgrades" ]; then \
81
81
echo "Pip updating $upgrades" ; \
82
82
python -m pip --no-cache --disable-pip-version-check \
83
83
install -U $upgrades < /dev/null; \
84
84
else \
85
- echo Nothing to pip update; \
85
+ echo " Nothing to pip update" ; \
86
86
fi; \
87
87
ls -l /usr/local/lib/python3.11/site-packages; \
88
88
VER=$(apk list -I 'xapian-core-dev' | \
89
89
sed 's/^xapian-core-dev-\( [0-9.]*\) -.*/\1 /' ) && \
90
90
cd /tmp && \
91
91
wget -q "https://oligarchy.co.uk/xapian/$VER/xapian-bindings-$VER.tar.xz" && \
92
92
tar -Jxvf "xapian-bindings-$VER.tar.xz" && \
93
- cd xapian-bindings-$VER/ && \
93
+ cd " xapian-bindings-$VER/" && \
94
94
pip --no-cache-dir install sphinx && \
95
95
sed -i -e '/PYTHON3_SO=/s/distutils\. //g' \
96
96
-e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure && \
97
97
./configure --prefix=/usr/local --with-python3 --disable-documentation && \
98
98
make && make install && \
99
99
pip uninstall --no-cache-dir -y sphinx && \
100
- pip uninstall --no-cache-dir -y -r $CWD/sphinxdeps.txt && \
100
+ pip uninstall --no-cache-dir -y -r " $CWD/sphinxdeps.txt" && \
101
101
rm -rf /usr/local/share/doc/xapian-bindings
102
102
103
103
# add requirements for pip here, e.g. Whoosh, gpg, zstd or other
@@ -129,22 +129,22 @@ RUN [ -z "${VERBOSE}" ] || set -xv; \
129
129
"pypi" *) \
130
130
version_spec=$( printf "%s" "$source" | \
131
131
sed -ne 's/^pypi\( [~=!<>].*\) /\1 /p' ); \
132
- pip install --no-cache-dir roundup${version_spec}; \
132
+ pip install --no-cache-dir " roundup${version_spec}" ; \
133
133
cp -ril /usr/local/lib/"python${pythonversion}" /site-packages/usr/local/share/* \
134
134
/usr/local/share;; \
135
135
"pip_local" ) \
136
136
cd install && \
137
137
pip -V && \
138
138
pip install --no-cache-dir . ;; \
139
139
"pip_sdist" ) \
140
- dist=$(ls install/dist | sed -ne '/roundup-[0-9].*\. tar\. gz$/p' | tail -n 1); \
140
+ dist=$(find install/dist | sed -ne '/roundup-[0-9].*\. tar\. gz$/p' | tail -n 1); \
141
141
if [ -z "$dist" ] ; then \
142
142
printf "Unable to find a source distribution file in dist\n " ; \
143
143
printf "Exiting\n " ; \
144
144
exit 1; \
145
145
fi; \
146
146
printf "Building with distribution: %s\n " "$dist" ; \
147
- pip install --no-cache-dir install/dist/$dist;; \
147
+ pip install --no-cache-dir " install/dist/$dist" ;; \
148
148
*) \
149
149
echo "invalid value for source: $source" ; \
150
150
echo "must be local, pypi, pip_local or pip_sdist" ; \
@@ -192,7 +192,7 @@ RUN apk --no-cache upgrade; \
192
192
python -m pip --no-cache --disable-pip-version-check \
193
193
install -U $upgrades < /dev/null; \
194
194
else \
195
- echo Nothing to pip update; \
195
+ echo " Nothing to pip update" ; \
196
196
fi
197
197
198
198
ARG source
0 commit comments