Skip to content

Commit

Permalink
Fixed build failure (Cray-HPE#12)
Browse files Browse the repository at this point in the history
This changes setuptools to not be upgraded.

The build was failing because of incompatabilities between the python
libraries packaging and setuptools.

The packaging library is installed via an OS package, and so it cannot
be upgraded by pip (uninstalled and then installed). The error given by
pip is that it is a 'distutils installed project' and cannot accurately
determine which files belong to it.

CASMHMS-6243
  • Loading branch information
shunr-hpe authored Jul 30, 2024
1 parent 01f7255 commit 097ab66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
**__pycache__**
*.tar
*.tar.gz
*.swp

# Prevent certificates from getting checked in
*.ca
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BSD 3-Clause License
#
# Copyright 2022 Hewlett Packard Enterprise Development LP
# Copyright [2022,2024] Hewlett Packard Enterprise Development LP
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -28,7 +28,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

FROM artifactory.algol60.net/docker.io/library/alpine:3.16 AS base
FROM artifactory.algol60.net/docker.io/library/alpine:3.17 AS base

COPY src/requirements.txt /app/requirements.txt

Expand All @@ -48,6 +48,7 @@ RUN set -ex \
curl \
&& pip3 install --upgrade \
pip \
&& pip3 install \
setuptools \
&& pip3 install wheel \
&& pip3 install -r /app/requirements.txt \
Expand Down

0 comments on commit 097ab66

Please sign in to comment.