![构建基于 python3 的 snapcraft 应用程序时出错](https://linux22.com/image/1073626/%E6%9E%84%E5%BB%BA%E5%9F%BA%E4%BA%8E%20python3%20%E7%9A%84%20snapcraft%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%97%B6%E5%87%BA%E9%94%99.png)
这是我的 .yaml 文件
name: ibop
version: '1.0'
summary: Get your pubblic IP address
description: |
This is just a test
grade: devel
confinement: strict
base: core22
parts:
ibop:
plugin: python
source: https://github.com/aleff-github/ibop.git
这是命令snapcraft --debug
输出
Launching instance...
Executed: repull ibop ('plugin' property changed)
Failed to run the build script for part 'ibop'.
Launching shell on build environment...
snapcraft-ibop-on-amd64-for-amd64-45112 ../project# exit
exit
Failed to run the build script for part 'ibop'.
Failed to execute pack in instance.
Full execution log: '/home/aleff/.local/state/snapcraft/log/snapcraft-20230829-153619.430056.log'
我试图通过阅读日志文件来理解问题,我发现了这一点
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:14.958 :: Successfully installed pip-23.2.1 setuptools-68.1.2 wheel-0.41.2
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.070 :: + '[' -f setup.py ']'
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.071 :: + /root/parts/ibop/install/bin/pip install -U .
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.487 :: Processing /root/parts/ibop/build
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.488 :: Preparing metadata (setup.py): started
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.643 :: Preparing metadata (setup.py): finished with status 'done'
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.644 :: ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-3d35zd5z
2023-08-29 15:37:44.871 :: 2023-08-29 13:37:15.767 Failed to run the build script for part 'ibop'.