alpine linux上的Python fbs缺少PyQt包

2024-05-23 14:32:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用Alpine Linux在CI runner上编译我的项目。 这个项目是用Python和fbs模块制作的。 它可以从fbs run开始,用fbs freeze冻结,并且可以用fbs installer来制作安装程序。在

但是,如果我尝试使用以下.gitlab-ci.yml编译它:

before_script:
  - alias pip="pip3"
  - apk add --update --no-cache python3 python3-dev
  - python3 -m ensurepip
  - rm -r /usr/lib/python*/ensurepip
  - pip3 install --upgrade pip setuptools
  - ls
  - cd code/
  - apk add py3-qt5
  - pip3 install wheel
  - pip3 install -r production.txt

test:
  stage: test
  tags:
    - docker-in-docker
  script:
  - pytest

production:
  type: deploy
  tags:
    - docker-in-docker
  script:
  - ln -s /lib/libc.musl-x86_64.so.1 ldd
  - ln -s /lib /lib64 
  - fbs freeze
  - fbs installer

fbs freezefbs installer外,所有命令都工作。 执行fbs freeze时,将引发以下错误:

^{pr2}$

有什么办法解决这个问题吗?在


Tags: installpip项目dockeraddlibpip3installer