Skip to content

Commit

Permalink
TEST install setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnbbc committed Sep 5, 2024
1 parent 3ca73b7 commit 99b9942
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
commontoolingBranch:
description: 'Commontooling branch or tag to use'
required: true
default: 'main'
default: 'philipn-python-install-setuptools'
type: string

jobs:
Expand All @@ -48,5 +48,5 @@ jobs:
# workflow_dispatch inputs are always strings. Convert to boolean.
forceDocsUpload: ${{ inputs.forceDocsUpload == true }}
pythonVersion: ${{ inputs.pythonVersion || '3.10' }}
commontoolingBranch: ${{ inputs.commontoolingBranch || 'main' }}
commontoolingBranch: ${{ inputs.commontoolingBranch || 'philipn-python-install-setuptools' }}
secrets: inherit
5 changes: 5 additions & 0 deletions static-commontooling/docker/Dockerfile_multi_macros.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ COPY --from=api /api ./{{ modname }}/apidocs
{% endif -%}
COPY . .

RUN --mount=type=cache,target=/root/.cache/pip --mount=type=secret,id=pipconf,target=/etc/pip.conf pip install setuptools

RUN python3 setup.py sdist
{%- endmacro %}

Expand Down Expand Up @@ -66,6 +68,9 @@ COPY {{ extra_requirements_file }} ./
RUN cat {{ extra_requirements_file }} >> ./requirements.txt
{%- endif %}

# Ensure setuptools is installed
RUN --mount=type=cache,target=/root/.cache/pip --mount=type=secret,id=pipconf,target=/etc/pip.conf pip install setuptools

{% if install_target != None -%}
RUN --mount=type=cache,target=/root/.cache/pip --mount=type=secret,id=pipconf,target=/etc/pip.conf mkdir -p {{ install_target }} && pip install -f ./wheels -r requirements.txt -t {{ install_target }}

Expand Down

0 comments on commit 99b9942

Please sign in to comment.