title: python3-wheel installed, still using legacy 'setup.py' when installing dlib
body: <p>I've <a href="https://github.com/Amitie10g/zoneminder.machine.learning" rel="nofollow noreferrer">forked</a> <a href="https://github.com/dlandon/zoneminder.machine.learning" rel="nofollow noreferrer">dlandon's <strong>Zoneminder</strong></a> project in order to build a Docker image using <strong>Debian Bullseye</strong> instead of Ubuntu, <strong>for i386</strong> (I'm installing it into a 32-bit mini PC).</p>
  <p>Part of the requiriments is installing <a href="https://pypi.org/project/dlib" rel="nofollow noreferrer"><code>dlib</code></a> (latest is 19.22.0). I've installed the required dependencies (<a href="https://packages.debian.org/bullseye/python3-pip" rel="nofollow noreferrer"><code>python3-pip</code></a>, <a href="https://packages.debian.org/bullseye/python3-setuptools" rel="nofollow noreferrer"><code>python3-setuptools</code></a> and <a href="https://packages.debian.org/bullseye/python3-wheel" rel="nofollow noreferrer"><code>python3-wheel</code></a>, as well as GCC and CMake).</p>
  <p>When installing <code>dlib</code>, the terminal outputs:</p>
  <pre><code>Collecting dlib
    Downloading dlib-19.22.0.tar.gz (7.4 MB)
  Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
  Installing collected packages: dlib
      Running setup.py install for dlib: started
      ...
  </code></pre>
  <p>The relevant part is (even with <code>python3-wheel</code> installed)</p>
  <pre><code>Using legacy 'setup.py install' for dlib, since package 'wheel' is not installed.
  </code></pre>
  <p><code>dlib</code> builts successfully but takes a looong time to build, however. This happens with any packages supossed to use <code>wheel</code>.</p>
  <p>I haven't found any (answered) questions about this specific issue, so, if there is something I missed, I would be told about that.</p>
  <p>Everything is in the <a href="https://github.com/Amitie10g/zoneminder.machine.learning/blob/master/Dockerfile" rel="nofollow noreferrer">Dockerfile</a>.</p>