Fix weird shenanigans with zope python deps

This commit is contained in:
Théophile Diot 2024-01-04 14:25:04 +00:00
parent cff05457d1
commit 309c5d0fe9
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
5 changed files with 10 additions and 5 deletions

View file

@ -44,7 +44,8 @@ RUN mkdir -p deps/python && \
# Compile and install dependencies
RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --no-cache-dir --ignore-installed --require-hashes -r /tmp/requirements-deps.txt && \
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt && \
if [ ! -f /usr/share/bunkerweb/deps/python/zope/__init__.py ] ; then touch /usr/share/bunkerweb/deps/python/zope/__init__.py ; fi
# Copy files
# can't exclude deps from . so we are copying everything by hand

View file

@ -44,7 +44,8 @@ RUN mkdir -p deps/python && \
# Compile and install dependencies
RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --break-system-packages --no-cache-dir --ignore-installed --require-hashes -r /tmp/requirements-deps.txt && \
pip install --break-system-packages --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt
pip install --break-system-packages --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt && \
if [ ! -f /usr/share/bunkerweb/deps/python/zope/__init__.py ] ; then touch /usr/share/bunkerweb/deps/python/zope/__init__.py ; fi
# Copy files
# can't exclude deps from . so we are copying everything by hand

View file

@ -40,7 +40,8 @@ RUN mkdir -p deps/python && \
# Compile and install dependencies
RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --no-cache-dir --ignore-installed --require-hashes -r /tmp/requirements-deps.txt && \
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt && \
if [ ! -f /usr/share/bunkerweb/deps/python/zope/__init__.py ] ; then touch /usr/share/bunkerweb/deps/python/zope/__init__.py ; fi
# Copy files
# can't exclude deps from . so we are copying everything by hand

View file

@ -56,7 +56,8 @@ RUN mkdir -p deps/python && \
RUN easy_install-3.9 pip && \
export MAKEFLAGS="-j$(nproc)" && \
pip install --no-cache-dir --ignore-installed --require-hashes -r /tmp/requirements-deps.txt && \
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt && \
if [ ! -f /usr/share/bunkerweb/deps/python/zope/__init__.py ] ; then touch /usr/share/bunkerweb/deps/python/zope/__init__.py ; fi
# Copy BW files
# can't exclude deps from . so we are copying everything by hand

View file

@ -44,7 +44,8 @@ RUN mkdir -p deps/python && \
# Compile and install dependencies
RUN export MAKEFLAGS="-j$(nproc)" && \
pip install --no-cache-dir --ignore-installed --require-hashes -r /tmp/requirements-deps.txt && \
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt
pip install --no-cache-dir --require-hashes --target deps/python -r deps/requirements.txt && \
if [ ! -f /usr/share/bunkerweb/deps/python/zope/__init__.py ] ; then touch /usr/share/bunkerweb/deps/python/zope/__init__.py ; fi
# Copy files
# can't exclude deps from . so we are copying everything by hand