Skip to content

Commit

Permalink
Install setuptools dependencies
Browse files Browse the repository at this point in the history
setuptools dependency requirements may not be satisfied with the
installed packages, which are now preferred over the vendored ones with
71.0.0:

pypa/setuptools#4478

Make sure that the dependencies are also upgraded when setuptools are
upgraded.

And install the packages into the user directory instead of running it
as the 'root' user, which is not recommended.

Change-Id: I12be08c1442f3dd948638a502fc37ff2877bc966
Signed-off-by: Sangwook Ha <[email protected]>
  • Loading branch information
sangwookha-vz committed Aug 26, 2024
1 parent 067f5eb commit 2f26411
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions csit/suites/netconf/notifications/notifications_basic.robot
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,26 @@ Setup_Everything
SSHKeywords.Open_Connection_To_Tools_System
SSHLibrary.Put_File ${CURDIR}/../../../../tools/wstools/wsreceiver.py
SSHLibrary.Put_File ${CURDIR}/../../../../tools/wstools/ssereceiver.py
SSHLibrary.Execute_Command sudo apt-get install -y python3-pip return_stdout=True return_stderr=True
SSHLibrary.Execute_Command
... sudo python3 -m pip install --upgrade pip setuptools wheel
${stdout} ${stderr} = SSHLibrary.Execute_Command
... sudo apt-get install -y python3-pip
... return_stdout=True
... return_stderr=True
SSHLibrary.Execute_Command
... sudo python3 -m pip install websocket-client asyncio aiohttp aiohttp-sse-client coroutine
BuiltIn.Log ${stdout}
BuiltIn.Log ${stderr}
# setuptools dependency issue: https://github.com/pypa/setuptools/issues/4478
# Make sure to also upgrade setuptools dependencies
${stdout} ${stderr} = SSHLibrary.Execute_Command
... python3 -m pip install --user --upgrade pip setuptools wheel packaging ordered-set more_itertools jaraco.text importlib_resources importlib_metadata tomli platformdirs
... return_stdout=True
... return_stderr=True
BuiltIn.Log ${stdout}
BuiltIn.Log ${stderr}
${stdout} ${stderr} = SSHLibrary.Execute_Command
... python3 -m pip install --user websocket-client asyncio aiohttp aiohttp-sse-client coroutine
... return_stdout=True
... return_stderr=True
BuiltIn.Log ${stdout}
BuiltIn.Log ${stderr}
RequestsLibrary.Create_Session restconf http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH}
KarafKeywords.Execute_Controller_Karaf_Command_On_Background log:set ${CONTROLLER_LOG_LEVEL}

Expand Down

0 comments on commit 2f26411

Please sign in to comment.