Python requirements are missing wheel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
New
|
Undecided
|
Unassigned |
Bug Description
When pip-installing directly from the source code on a clean python venv, the following appears
```
mko@ubuntu2004:
mko@ubuntu2004:
(testing-venv) mko@ubuntu2004:
Collecting networkx>=1.10
Using cached networkx-
Collecting pbr!=2.1.0,>=2.0.0
Using cached pbr-5.5.
Collecting PyYAML>=3.12
Using cached PyYAML-
Collecting stevedore>=1.20.0
Using cached stevedore-
Collecting flake8<
Using cached flake8-
Collecting decorator>=4.3.0
Using cached decorator-
Collecting pyflakes<
Using cached pyflakes-
Collecting mccabe<
Using cached mccabe-
Collecting pycodestyle<
Using cached pycodestyle-
Installing collected packages: decorator, networkx, pbr, PyYAML, stevedore, pyflakes, mccabe, pycodestyle, flake8
Successfully installed PyYAML-5.4.1 decorator-4.4.2 flake8-3.8.4 mccabe-0.6.1 networkx-2.5 pbr-5.5.1 pycodestyle-2.6.0 pyflakes-2.2.0 stevedore-3.3.0
(testing-venv) mko@ubuntu2004:
Processing /home/mko/
Requirement already satisfied: PyYAML>=3.12 in ./testing-
Requirement already satisfied: flake8<
Requirement already satisfied: pbr!=2.1.0,>=2.0.0 in ./testing-
Requirement already satisfied: stevedore>=1.20.0 in ./testing-
Requirement already satisfied: mccabe<
Requirement already satisfied: pyflakes<
Requirement already satisfied: pycodestyle<
Requirement already satisfied: decorator>=4.3.0 in ./testing-
Building wheels for collected packages: diskimage-builder
Building wheel for diskimage-builder (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/mko/
getattr(tokenize, '"'"'open'"'"', open)(_
cwd: /tmp/pip-
Complete output (8 lines):
/home/
warnings.
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 diskimage-builder
Running setup.py clean for diskimage-builder Failed to build diskimage-builder
Installing collected packages: diskimage-builder
Attempting uninstall: diskimage-builder
Found existing installation: diskimage-builder 3.7.1.dev2
Uninstalling diskimage-
Successfully uninstalled diskimage-
Running setup.py install for diskimage-builder ... done
Successfully installed diskimage-
(testing-venv) mko@ubuntu2004:
```
It does not seem like a blocking error, but installing "wheel" via pip before installing diskimage-builder makes this error not to fire.
description: | updated |
Another way is adding to setup.py wheel so that setup_requires becomes ['pbr>=2.0.0', 'wheel']. Both ways seem to get rid of the error, not sure if any is desired though