[PATCH] D89377: [LNT] Pin Python version in Dockerfile to 3.7 temporarily

Tamar Christina via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 02:27:53 PDT 2020


tnfchris created this revision.
tnfchris added a reviewer: thopre.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
tnfchris requested review of this revision.

Hi All,

Python 3.9 has been released and one of the dependencies of LNT does not compiler under it.  pyyaml seems to fail during building:

  ext/_yaml.c: In function '__Pyx_modinit_type_init_code':
     ext/_yaml.c:25698:25: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
     25698 |   __pyx_type_5_yaml_Mark.tp_print = 0;
           |                         ^
     ext/_yaml.c:25718:28: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
     25718 |   __pyx_type_5_yaml_CParser.tp_print = 0;
           |                            ^
     ext/_yaml.c:25732:29: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'
     25732 |   __pyx_type_5_yaml_CEmitter.tp_print = 0;
           |                             ^

Presumably because the header has changed under python 3.9.  For now let's pin the Dockerfile to 3.7 until this is sorted so LNT can still run.

OK for master?

Thanks,
Tamar


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89377

Files:
  docker/Dockerfile


Index: docker/Dockerfile
===================================================================
--- docker/Dockerfile
+++ docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:alpine
+FROM python:3.7-alpine
 
 RUN apk update \
   && apk add --no-cache --virtual .build-deps git g++ postgresql-dev yaml-dev \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89377.298085.patch
Type: text/x-patch
Size: 298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201014/5b5b1b82/attachment.bin>


More information about the llvm-commits mailing list