471,353 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

Bundling Python on Mac

Hello, I'm writing a Python/PyQt application. For my Mac distribution.
I would like to include all the needed libraries in the Mac bundle.
How should I go about doing this?
Nov 29 '07 #1
4 1256
Benjamin schrieb:
Hello, I'm writing a Python/PyQt application. For my Mac distribution.
I would like to include all the needed libraries in the Mac bundle.
How should I go about doing this?
The py2app distutils extension should do that for you. It works flawless
for PyObjc-apps for me - it _should_ do so for Qt as well, but I have to
admit that it sometimes had errors related to Qt when creating bundles -
so maybe you need to tweak the support a bit.

Diez
Nov 29 '07 #2
On Nov 29, 2:34 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
Benjamin schrieb:
Hello, I'm writing a Python/PyQt application. For my Mac distribution.
I would like to include all the needed libraries in the Mac bundle.
How should I go about doing this?

The py2app distutils extension should do that for you. It works flawless
for PyObjc-apps for me - it _should_ do so for Qt as well, but I have to
admit that it sometimes had errors related to Qt when creating bundles -
so maybe you need to tweak the support a bit.
Does it bundle the Python library with it, so there are no (excepting
system) dependencies?
>
Diez
Nov 30 '07 #3
Benjamin schrieb:
On Nov 29, 2:34 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
>Benjamin schrieb:
>>Hello, I'm writing a Python/PyQt application. For my Mac distribution.
I would like to include all the needed libraries in the Mac bundle.
How should I go about doing this?
The py2app distutils extension should do that for you. It works flawless
for PyObjc-apps for me - it _should_ do so for Qt as well, but I have to
admit that it sometimes had errors related to Qt when creating bundles -
so maybe you need to tweak the support a bit.
Does it bundle the Python library with it, so there are no (excepting
system) dependencies?
It does.

Diez
Nov 30 '07 #4
On Nov 30, 6:48 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
Benjamin schrieb:
On Nov 29, 2:34 am, "Diez B. Roggisch" <de...@nospam.web.dewrote:
Benjamin schrieb:
>Hello, I'm writing a Python/PyQt application. For my Mac distribution.
I would like to include all the needed libraries in the Mac bundle.
How should I go about doing this?
The py2app distutils extension should do that for you. It works flawless
for PyObjc-apps for me - it _should_ do so for Qt as well, but I have to
admit that it sometimes had errors related to Qt when creating bundles -
so maybe you need to tweak the support a bit.
Does it bundle the Python library with it, so there are no (excepting
system) dependencies?

It does.
Beautiful!
>
Diez
Dec 1 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.