From 641b610115f96f6fe70055873c84755a5cfec90f Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Thu, 10 Dec 2020 23:18:58 -0800 Subject: [PATCH] [build]: Install 'wheel' package in sonic-slave-buster (#6182) Install the 'wheel' package in sonic-slave-buster container to eliminate error messages like the following: ``` Running setup.py bdist_wheel for watchdog: started Running setup.py bdist_wheel for watchdog: finished with status 'error' Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Qd3K08/watchdog/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-0AHpMe --python-tag cp27: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- Failed building wheel for watchdog ``` These error messages appear to have no impact on the image build, because the Python package seems to still get installed successfully afterward, just the building of a wheel package fails. Therefore, this is more of a cosmetic fix than an actual bug. --- sonic-slave-buster/Dockerfile.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonic-slave-buster/Dockerfile.j2 b/sonic-slave-buster/Dockerfile.j2 index b5d4ac901b..ca141863b3 100644 --- a/sonic-slave-buster/Dockerfile.j2 +++ b/sonic-slave-buster/Dockerfile.j2 @@ -346,7 +346,9 @@ RUN apt-get purge -y python-pip python3-pip # For building Python packages RUN pip2 install setuptools==40.8.0 +RUN pip2 install wheel==0.35.1 RUN pip3 install setuptools==49.6.00 +RUN pip3 install wheel==0.35.1 # For building sonic-utilities RUN pip2 install fastentrypoints