Module `simox-control`: Fix `ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.`
On the lab pcs installing the simox-control
fails due to an old setuptools version:
echo "Create virtual environment in . ..."
Create virtual environment in . ...
"/common/homes/staff/pohl/Code/Cpp/bringObjectDemo/tools/python/3.10/install/bin/python3.10" -m venv "."
echo "Upgrade pip ..."
Upgrade pip ...
"./bin/pip3" install --upgrade pip
Requirement already satisfied: pip in ./lib/python3.10/site-packages (21.2.3)
Collecting pip
Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.3
Uninstalling pip-21.2.3:
Successfully uninstalled pip-21.2.3
Successfully installed pip-23.0.1
echo "Preinstall packages ..."
Preinstall packages ...
"./bin/pip3" install setuptools
Requirement already satisfied: setuptools in ./lib/python3.10/site-packages (57.4.0)
echo "Install package dependencies ..."
Install package dependencies ...
"./bin/pip3" install -e ".."
Obtaining file:///common/homes/staff/pohl/Code/Cpp/bringObjectDemo/simox-control/python
Preparing metadata (setup.py) ... - error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
make: *** [bin/activate] Error 1
Makefile:19: recipe for target 'bin/activate' failed