Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Build] Fix the pygobject installation issue (sonic-net#18318)
Why I did it Fix the build broken issue: Processing /sonic_host_services-1.0-py3-none-any.whl Requirement already satisfied: dbus-python in /usr/lib/python3/dist-packages (from sonic-host-services==1.0) (1.2.16) Requirement already satisfied: systemd-python in /usr/local/lib/python3.9/dist-packages (from sonic-host-services==1.0) (235) Requirement already satisfied: Jinja2>=2.10 in /usr/local/lib/python3.9/dist-packages (from sonic-host-services==1.0) (3.1.2) Collecting PyGObject (from sonic-host-services==1.0) Downloading pygobject-3.48.0.tar.gz (714 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 714.2/714.2 kB 13.1 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'error' error: subprocess-exited-with-error Work item tracking Microsoft ADO (number only): 27124786 How I did it Install the pygobject before installing the sonic_host_services. If installing during the .,whl, it will try to install the latest version (3.48.0), then it will have an issue. Prefer to use the version 3.46.0, see sonic-buildimage/files/build/versions/host-image/versions-py3 Line 55 in a6437d8 pygobject==3.46.0 It will not add a new package, only install the depended packages firstly.
- Loading branch information