Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. What's the easiest way to distribute a PyQt6 app for multiple OS?
QtWS25 Last Chance

What's the easiest way to distribute a PyQt6 app for multiple OS?

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 4 Posters 546 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mizmas
    wrote on last edited by
    #1

    Hi, I made a PyQt6 app with PyInstaller and want to distribute it for Windows and MacOS. Is making a virtual machine for each OS and building it on them the best way, or are there better alternatives?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Yes but be aware that you cannot virtualize macOS on non Apple hardware.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Yes but be aware that you cannot virtualize macOS on non Apple hardware.

        S Offline
        S Offline
        StarterKit
        wrote on last edited by StarterKit
        #3

        @SGaist actually you can, but it will be a pain.

        @Mizmas, I faced the same question some time ago. I still haven't found the best answer for it but may solution is a package distribution via PyPi - i.e. application is distributed as a python package.
        (Python packages were not supposed to be used this way so it gave me some challenges to have a right files and directlry structure, but overall it works fine).
        Yes, my users should install Python by themselves and be able to run pip command, but other things works more or less fine with this setup. I.e. all you need is to run pip install app-name command and it will download and install application and all dependencies.

        SGaistS 1 Reply Last reply
        0
        • S StarterKit

          @SGaist actually you can, but it will be a pain.

          @Mizmas, I faced the same question some time ago. I still haven't found the best answer for it but may solution is a package distribution via PyPi - i.e. application is distributed as a python package.
          (Python packages were not supposed to be used this way so it gave me some challenges to have a right files and directlry structure, but overall it works fine).
          Yes, my users should install Python by themselves and be able to run pip command, but other things works more or less fine with this setup. I.e. all you need is to run pip install app-name command and it will download and install application and all dependencies.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @StarterKit it's a pain and currently not legal, so better avoid.

          As for asking users to install Python on their system, it's likely not the target audience so it might not be an option at all.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            @StarterKit it's a pain and currently not legal, so better avoid.

            As for asking users to install Python on their system, it's likely not the target audience so it might not be an option at all.

            S Offline
            S Offline
            SimonSchroeder
            wrote on last edited by
            #5

            @SGaist said in What's the easiest way to distribute a PyQt6 app for multiple OS?:

            it's a pain and currently not legal, so better avoid.

            Older versions are quite easy (on Linux): https://github.com/myspaghetti/macos-virtualbox. Legality is at least a grey area if not entirely forbidden (depending on your country).

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved