-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi,
I am testing the nanobind-project example with my Intel Mac with OS version 15.2 (more details below). The project builds fine, but I can't install the wheel. Pip says the wheel "is not a supported wheel on this platform" - even though I just built it. This seems to only happen when I have installed Python using pyenv and not when using uv.
Here are the steps (in the root nanobind-project example folder):
# Clear dist folder
rm -r dist
# Build a wheel
python -m build
# Outputs a wheel
ls dist/nanobind_project-0.3.4-cp312-abi3-macosx_14_6_x86_64.whl
# Try to install the wheel
python -m pip install dist/nanobind_project-0.3.4-cp312-abi3-macosx_14_6_x86_64.whl
Produces the error:
ERROR: nanobind_project-0.3.4-cp312-abi3-macosx_14_6_x86_64.whl is not a supported wheel on this platform.
Notice that the MacOS version tag is 14.6 smaller than my current OS version which is 15.2.
Version info:
- MacOS:
$ sw_vers
ProductName: macOS
ProductVersion: 15.2
BuildVersion: 24C101
- Python:
$ python --version
Python 3.12.5
$ pip --version
pip 24.3.1 from ... (python 3.12)
$ python -m build --version
build 1.2.2.post1
The way I installed Python was by using Pyenv:
pyenv install 3.12.5
pyenv global 3.12.5
If I install Python using uv the wheel works and installs fine:
pip install uv
uv venv --seed --python 3.12 ~/.venvs/py3.12
source ~/.venvs/py3.12/bin/activate
When using uv, it creates a wheel named: nanobind_project-0.3.4-cp312-abi3-macosx_10_9_x86_64.whl
- the MacOS version is 10.9 which is lower than the previous.
Do you have any ideas about what is going on?
Thanks,
Josh
cc: @steve-barlow