I'm having an issue where I have a wheel I just built, and I want to install it with a particular set of "extra" installs. The name of the module in question is "scriptconfig".
Unfortunately, I don't have a MWE right now, but if I can't figure this out quickly I'll make one.
On Python 3.10 and 3.11 I can do:
python -m build --wheel --outdir wheelhouse
And that builds my wheel and puts it in ./wheelhouse. When I ls I see it is there:
(pyenv3.11-dev) joncrall@toothbrush:~/code/scriptconfig$ ls wheelhouse/
scriptconfig-0.7.0-py3-none-any.whl
I can install it normally in both 3.10 and 3.11
pip install scriptconfig -f wheelhouse/
In both cases I get: Successfully installed scriptconfig-0.7.0
But when I try to add extras:
pip install scriptconfig[tests-strict,runtime-strict,optional-strict] -f wheelhouse
Python 3.6 - 3.10 works fine:
(pyenv3.10.5) joncrall@toothbrush:~/code/scriptconfig$ pip install scriptconfig[tests-strict,runtime-strict,optional-strict] -f wheelhouse
Looking in links: wheelhouse
Processing ./wheelhouse/scriptconfig-0.7.0-py3-none-any.whl
Requirement already satisfied: pyyaml in /home/joncrall/.pyenv/versions/3.10.5/envs/pyenv3.10.5/lib/python3.10/site-packages (from scriptconfig[optional-strict,runtime-strict,tests-strict]) (5.4.1)
...
Installing collected packages: scriptconfig
Successfully installed scriptconfig-0.7.0
but on 3.11rc2 I it ignores wheelhouse and just installed 0.6.5 from pypi.
(pyenv3.11-dev) joncrall@toothbrush:~/code/scriptconfig$ pip install scriptconfig[tests-strict,runtime-strict,optional-strict] -f wheelhouse
Looking in links: wheelhouse
Processing ./wheelhouse/scriptconfig-0.7.0-py3-none-any.whl
Requirement already satisfied: pyyaml in /home/joncrall/.pyenv/versions/3.11-dev/envs/pyenv3.11-dev/lib/python3.11/site-packages (from scriptconfig[optional-strict,runtime-strict,tests-strict]) (6.0)
Requirement already satisfied: ubelt in /home/joncrall/code/ubelt (from scriptconfig[optional-strict,runtime-strict,tests-strict]) (1.2.2)
Collecting scriptconfig[optional-strict,runtime-strict,tests-strict]
Using cached scriptconfig-0.6.5-py3-none-any.whl (32 kB)
WARNING: scriptconfig 0.6.5 does not provide the extra 'optional-strict'
WARNING: scriptconfig 0.6.5 does not provide the extra 'runtime-strict'
WARNING: scriptconfig 0.6.5 does not provide the extra 'tests-strict'
Requirement already satisfied: six in /home/joncrall/.pyenv/versions/3.11-dev/envs/pyenv3.11-dev/lib/python3.11/site-packages (from scriptconfig[optional-strict,runtime-strict,tests-strict]) (1.16.0)
Installing collected packages: scriptconfig
Successfully installed scriptconfig-0.6.5
Is this a known issue or a bug? What's going on?