altendky / pyqt-tools

Qt tools including PyQt Designer and QML plugins
Other
249 stars 39 forks source link

macOS ARM / Apple Silicon / M1 support #107

Open altendky opened 2 years ago

altendky commented 2 years ago
(base) kakutooru@MacBook-Air PyQt5-YOLOv5 % pip install pyqt5-tools
Looking in indexes: https://pypi.douban.com/simple/
Collecting pyqt5-tools
  Using cached https://pypi.doubanio.com/packages/b7/70/a25aab849a5e38ae78716acde1f917a14d9d819c8600bbb8cf536781f7c5/pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting click
  Using cached https://pypi.doubanio.com/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl (96 kB)
Collecting python-dotenv
  Using cached https://pypi.doubanio.com/packages/2d/10/ff4f2f5b2a420fd09e1331d63cc87cf4367c5745c0a4ce99cea92b1cbacb/python_dotenv-0.21.0-py3-none-any.whl (18 kB)
Collecting pyqt5-tools
  Using cached https://pypi.doubanio.com/packages/36/b8/a255b8160e863678aa7d559a4c8c33b5448a6e270992d1464ec9f87ed633/pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB)
  Using cached https://pypi.doubanio.com/packages/88/ca/a9cb4816479940d1e0c94c683418c2cc4b4bc2955cd3c5754179a5f95040/pyqt5_tools-5.15.4.3.0.3-py3-none-any.whl (28 kB)
  Using cached https://pypi.doubanio.com/packages/e5/cb/34b583ce53ca66803cfe904b11ae87633b1e98121a2a54583674514ae29b/pyqt5_tools-5.15.3.3.2-py3-none-any.whl (29 kB)
  Downloading https://pypi.doubanio.com/packages/bb/03/9b9cbf99cb349d9e247110900520545ba6881567a0012736e7ad1203ade0/pyqt5_tools-5.15.3.3.1-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/40/c6/ca4cca9de41a9f02561c82626089bb3653748117312332f847ed9795f776/pyqt5_tools-5.15.3.3.0.3-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/50/70/3737fef9d73ef354e458a31617ebb2d14a15c64dc629887af78316448dad/pyqt5_tools-5.15.2.3.2-py3-none-any.whl (29 kB)
  Downloading https://pypi.doubanio.com/packages/0c/eb/2b1f5167428987d8699b3da3c814a703a3c3634046b183aecc4ec80ae7da/pyqt5_tools-5.15.2.3.1-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/7b/86/d60e9975cbce4ff0cc64918faaa9ea0e43560f3ee4f7aeab26a538205f14/pyqt5_tools-5.15.2.3.0.3-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/da/a3/f791afe43c4bd6e1b2b1f7b4e53a84bc0d12e39a059a47d8d3bf59c8e265/pyqt5_tools-5.15.2.3.0.2-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/59/01/3da40499fe3053a138b6c9cdde7c0e26394bdc439dc9606ad376b0cbb72a/pyqt5_tools-5.15.2.3.0.1-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/36/bc/a24fa91aba5220448199a64325e579b06af8a30f8a21e988edaa548d748d/pyqt5_tools-5.15.2.3-py3-none-any.whl (28 kB)
  Downloading https://pypi.doubanio.com/packages/9e/5b/b7314b5794c5af409f7ba8a856dbe6b0551ca348d1e455f2d3c7b2e6c39e/pyqt5_tools-5.15.1.3.2-py3-none-any.whl (29 kB)
  Downloading https://pypi.doubanio.com/packages/d8/9d/7deb2a083873114f4117bf53af3385468aed45c7628aa763b55df0f67b6d/pyqt5_tools-5.15.1.3.1-py3-none-any.whl (28 kB)
Collecting pyqt5==5.15.1
  Downloading https://pypi.doubanio.com/packages/1d/31/896dc3dfb6c81c70164019a6cbba6ab037e3af7653d9ca60ccc874ee4c27/PyQt5-5.15.1.tar.gz (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 4.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... -

I am trying to install it with "pip install " pip install pyqt5-tools" on MacOS 13.0.1 M1 chip. Everything seem all right and there are not crash, but it just stuck at " Preparing metadata (pyproject.toml) ... -" for a long time. Should I wait for longer time or it means that the project didn't provide support for m1 chip yet?

Thank for you contribution to this project.

Originally posted by @2369257907 in https://github.com/altendky/pyqt-tools/issues/12#issuecomment-1327400668

altendky commented 2 years ago

I'm guessing it is trying to compile pyqt5 itself since even the latest version (https://pypi.org/project/PyQt5/5.15.7/#files) doesn't support macOS ARM (Apple Silicon / M1). While there is at least one free service offering ARM runners presently, they are not generally available. Combine that with the fact I've got catch up to do here in many other regards and I wouldn't suggest holding your breath for macOS ARM support here. Depending what you need pyqt-tools for, tou could switch to PyQt6 and just do the pyqt-tools stuff in a Python-x86 venv on your Mac and everything else in a regular ARM venv. Obviously that's a terrible experience, but until I set aside probably several days to catch this project up... there probably isn't an actually good choice.