Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

edited tags
Link
pjs
  • 20k
  • 4
  • 30
  • 64
Notice removed Current answers are outdated by Community Bot
Bounty Ended with no winning answer by Community Bot
Notice added Current answers are outdated by shuttle87
Bounty Started worth 50 reputation by shuttle87
even more information; added 55 characters in body; added 144 characters in body
Source Link
Georg Schölly
  • 126.5k
  • 54
  • 225
  • 277

My application looks like this:

main.py
windows/
 __init__.py
 mainwindow.py
 ...
model/
 __init__.py
 orders.py
 ...
resources/
 image1.png
 logo.jpg
 ...

The program is started with main.py. Is there a good way to create a 'final' application out of it? I'm thinking of something like py2exe/py2app, but without copying the python interpreter / modules into the application where one has only one executable.

I had a look at distutils, but this looks like it installs a program into the Python directory, which isn't usual on non-linux platforms.

At the moment I just copy the whole source folder onto the target machine and create an alias to main.pyw on windows. Some inconveniences:

  • The icon is the default python icon.
  • I have to create the alias manually.
  • In my source directory there are a lot of additional files like the source control folder.
  • I have to rename main.py to main.pyw manually.
  • It would be nice if only `.pyo* files are on the target machine. There's no real reason for it, I just don't like having unnecessary files.

How does one create such a nice automated distribution?

  • for macwindows? (That's the only platform that I have to support at the moment.)
  • for windowsmac?
  • for linux?

My application looks like this:

main.py
windows/
 __init__.py
 mainwindow.py
 ...
model/
 __init__.py
 orders.py
 ...
resources/
 image1.png
 logo.jpg
 ...

The program is started with main.py. Is there a good way to create a 'final' application out of it? I'm thinking of something like py2exe/py2app, but without copying the python interpreter / modules into the application where one has only one executable.

I had a look at distutils, but this looks like it installs a program into the Python directory, which isn't usual on non-linux platforms.

How does one create such a distribution?

  • for mac?
  • for windows?
  • for linux?

My application looks like this:

main.py
windows/
 __init__.py
 mainwindow.py
 ...
model/
 __init__.py
 orders.py
 ...
resources/
 image1.png
 logo.jpg
 ...

The program is started with main.py. Is there a good way to create a 'final' application out of it? I'm thinking of something like py2exe/py2app, but without copying the python interpreter / modules into the application where one has only one executable.

I had a look at distutils, but this looks like it installs a program into the Python directory, which isn't usual on non-linux platforms.

At the moment I just copy the whole source folder onto the target machine and create an alias to main.pyw on windows. Some inconveniences:

  • The icon is the default python icon.
  • I have to create the alias manually.
  • In my source directory there are a lot of additional files like the source control folder.
  • I have to rename main.py to main.pyw manually.
  • It would be nice if only `.pyo* files are on the target machine. There's no real reason for it, I just don't like having unnecessary files.

How does one create a nice automated distribution?

  • for windows? (That's the only platform that I have to support at the moment.)
  • for mac?
  • for linux?
added 141 characters in body
Source Link
Georg Schölly
  • 126.5k
  • 54
  • 225
  • 277

My application looks like this:

main.py
windows/
 __init__.py
 mainwindow.py
 ...
model/
 __init__.py
 orders.py
 ...
resources/
 image1.png
 logo.jpg
 ...

The program is started with main.py. Is there a good way to create a 'final' application out of it? I'm thinking of something like py2exe/py2app, but without copying the python interpreter / modules into the application where one has only one executable.

I had a look at distutils, but this looks like it installs a program into the Python directory, which isn't usual on non-linux platforms.

How does one create such a distribution?

  • for mac?
  • for windows?
  • for linux?

My application looks like this:

main.py
windows/
 __init__.py
 mainwindow.py
 ...
model/
 __init__.py
 orders.py
 ...
resources/
 image1.png
 logo.jpg
 ...

The program is started with main.py. Is there a good way to create a 'final' application out of it? I'm thinking of something like py2exe/py2app, but without copying the python interpreter / modules into the application where one has only one executable.

How does one create such a distribution?

  • for mac?
  • for windows?
  • for linux?

My application looks like this:

main.py
windows/
 __init__.py
 mainwindow.py
 ...
model/
 __init__.py
 orders.py
 ...
resources/
 image1.png
 logo.jpg
 ...

The program is started with main.py. Is there a good way to create a 'final' application out of it? I'm thinking of something like py2exe/py2app, but without copying the python interpreter / modules into the application where one has only one executable.

I had a look at distutils, but this looks like it installs a program into the Python directory, which isn't usual on non-linux platforms.

How does one create such a distribution?

  • for mac?
  • for windows?
  • for linux?
Source Link
Georg Schölly
  • 126.5k
  • 54
  • 225
  • 277
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /