Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-3117

qtpip: Don't try to re-download/unpack wheels when already up-to-date

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Qt pip
    • None
    • Windows 10 22H2

    Description

      I set up a new venv for PySide:

      C:\Users\USER>py3.12-pyside6.9\Scripts\activate.bat
      
      (py3.12-pyside6.9) C:\Users\USER>pip install qtpip
      Collecting qtpip
        Using cached qtpip-0.1.4-py3-none-win_amd64.whl.metadata (1.0 kB)
      Using cached qtpip-0.1.4-py3-none-win_amd64.whl (4.0 MB)
      Installing collected packages: qtpip
      Successfully installed qtpip-0.1.4
      
      (py3.12-pyside6.9) C:\Users\USER>qtpip install pyside6
      [INFO] Commercial License found
      [INFO] Starting downloading wheels
      [INFO] Downloading wheels (1/5) : "6.9.1-202506021544PySide6-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (2/5) : "6.9.1-202506021544shiboken6-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (3/5) : "6.9.1-202506021544PySide6_M2M-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (4/5) : "6.9.1-202506021544PySide6_Essentials-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (5/5) : "6.9.1-202506021544PySide6_Addons-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Unpacking packages, this might take some seconds.
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\shiboken6-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6_M2M-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6_Essentials-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6_Addons-6.9.1.commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\shiboken6-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6_m2m-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6_essentials-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6_addons-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Installing collected packages: shiboken6, pyside6-m2m, pyside6-essentials, pyside6-addons, pyside6
      
      Successfully installed pyside6-6.9.1+commercial pyside6-addons-6.9.1+commercial pyside6-essentials-6.9.1+commercial pyside6-m2m-6.9.1+commercial shiboken6-6.9.1+commercial
      

       

      Then, I immediately try to install PySide again:

      (py3.12-pyside6.9) C:\Users\USER>qtpip install pyside6
      [INFO] Commercial License found
      [INFO] Starting downloading wheels
      [INFO] Downloading wheels (1/5) : "6.9.1-202506021544PySide6-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (2/5) : "6.9.1-202506021544shiboken6-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (3/5) : "6.9.1-202506021544PySide6_Essentials-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (4/5) : "6.9.1-202506021544PySide6_Addons-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Downloading wheels (5/5) : "6.9.1-202506021544PySide6_M2M-6.9.1.commercial-cp39-abi3-win_amd64.whl.7z"
      [INFO] Unpacking packages, this might take some seconds.
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\shiboken6-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6_Essentials-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6_Addons-6.9.1.commercial-cp39-abi3-win_amd64.whl
      C:\Users\USER\AppData\Local\qtpip\cache\QtForPython\6.9.1\PySide6_M2M-6.9.1.commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\shiboken6-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6_essentials-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6_addons-6.9.1+commercial-cp39-abi3-win_amd64.whl
      Processing c:\users\user\appdata\local\qtpip\cache\qtforpython\6.9.1\pyside6_m2m-6.9.1+commercial-cp39-abi3-win_amd64.whl
      pyside6 is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
      shiboken6 is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
      pyside6-essentials is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
      pyside6-addons is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
      pyside6-m2m is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
      

       

      Although the "Downloading" stage was fast thanks to the package cache, it still spent some time trying to unpack/process the wheels before concluding that the latest version is already installed.

       

      Suggestion
      Like regular pip, let qtpip report "Requirement already satisfied" and quit early if the packages are already installed (and the user didn't request --force-reinstall)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes