Install python bdist_wheel for devstack virtual environment#128
Install python bdist_wheel for devstack virtual environment#128Sam-on-Diet wants to merge 2 commits intoopenstack:masterfrom
Conversation
|
Thank you for your contribution! This GitHub repository is just a mirror of https://opendev.org/openstack/devstack, where development really happens. Pull requests proposed on GitHub are automatically closed. If you are interested in pushing this code upstream, please note that OpenStack development uses Gerrit for change proposal and code review. If you have never contributed to OpenStack before, please see: Feel free to reach out to the First Contact SIG by sending an email to the openstack-discuss list with the tag '[First Contact]' in the subject line. To email the mailing list, you must first subscribe which can be done here: |
On Ubuntu 20.04, bdist_wheel needs to be manually install for devstack virtual environment before running stack.sh.
Otherwise, doing stack.sh complains that building wheels for openstack-requirements fails, as show below:
Building wheels for collected packages: openstack-requirements
Building wheel for openstack-requirements (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/stack/requirements/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-wdzs2h4u/setup.py'"'"'; file='"'"'/tmp/pip-req-build-wdzs2h4u/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-wu_od6tp
cwd: /tmp/pip-req-build-wdzs2h4u/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
ERROR: Failed building wheel for openstack-requirements
Running setup.py clean for openstack-requirements
Failed to build openstack-requirements
Installing collected packages: openstack-requirements
Attempting uninstall: openstack-requirements
Found existing installation: openstack-requirements 1.2.1.dev4940
Uninstalling openstack-requirements-1.2.1.dev4940:
Successfully uninstalled openstack-requirements-1.2.1.dev4940
Running setup.py install for openstack-requirements ... done
Successfully installed openstack-requirements-1.2.1.dev4940