-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent OSX wheels cannot be installed on Intel #7047
Comments
I looked at the way As a workaround, I suggest renaming the wheel before creating the release and uploading to pypi |
This must be a regression, maybe due to newer versions of MacOS on the build machines. |
Could you dry-run the nigthly? https://github.com/Z3Prover/z3/releases/tag/Nightly |
The nightly release installs just fine: (z3) $ pip install https://github.com/Z3Prover/z3/releases/download/Nightly/z3_solver-4.12.5.0-py2.py3-none-macosx_11_0_x86_64.whl
Collecting z3-solver==4.12.5.0
Using cached https://github.com/Z3Prover/z3/releases/download/Nightly/z3_solver-4.12.5.0-py2.py3-none-macosx_11_0_x86_64.whl (63.5 MB)
Collecting importlib-resources (from z3-solver==4.12.5.0)
Using cached importlib_resources-6.1.1-py3-none-any.whl.metadata (4.1 kB)
Using cached importlib_resources-6.1.1-py3-none-any.whl (33 kB)
Installing collected packages: importlib-resources, z3-solver
Successfully installed importlib-resources-6.1.1 z3-solver-4.12.5.0
(z3) $ pip list
Package Version
------------------- --------
importlib-resources 6.1.1
pip 23.3.1
setuptools 68.2.2
wheel 0.42.0
z3-solver 4.12.5.0 May I suggest substituting the added lines added in 6cd619d with something along: plat_name ='macosx_%s_x86_64' % re.sub(r'\A(1[1-9])(_[\d]+)*\Z', r'\1_0', osver.replace('.', '_')) in the lines 319 and 321? In this way you'll also cover the next releases (e.g. I'm running in 13.6.1), and you don't modify Note that discussion on pypa/packaging#578 resumed, because ignoring minor versions could be problematic. So, in the future you might want to go back on major/minor tag names. BTW with Z3 you're doing an outstanding work; I mainly use it to teach computational logic and it's one of the most accessible state of the art tools out there |
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
the new release uses the 11_0 naming scheme |
Hi! There's a regression from 4.13.1 whereby x86_64 wheels have reverted to the naming scheme with non-zero minor version numbers. That causes pip to ignore those wheels and fall back to trying to install from source, which fails in turn for me because the tuple ('darwin', 'x86_64') isn't in finalize_options in setup.py. In the Azure pipelines, vmImage was updated to macOS-latest in 8d831a, but only the MacBuildArm64 job passes --os=osx-11.0 to mk_unix_dist.py. |
The OSX wheels built for intel, starting from release z3-4.12.3, use the tag name
macosx_11_7
which is not recognised by pip as compatible with more recent OSX versions. This can be verified looking at the output frompip debug --verbose
under the Compatible tags section.Apparently, from 11 on, the minor should be always 0 (see the output of
pip debug --verbose|grep 'macosx_1[1-9]_[^0]'
). I tested this on an intel macbook with Ventura 13.6.1 (the only mac box I have access to) with different Python versions.I noticed that the arm version is correctly tagged
macosx_11_0
, and z3-4.12.2 was the last release with a wheel with a10_x
tag (wasmacosx_10_16_x86_64
, among the compatible ones).If the wheel file is renamed by changing
_7_
to_0_
, then it can be installed via pip.The text was updated successfully, but these errors were encountered: