Re:喜欢py2exe,但是在mac上 [英] Re: like py2exe, but on a mac

查看:446
本文介绍了Re:喜欢py2exe,但是在mac上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



2008年7月13日00:39,Alexnb写道:


>

大家好


我想知道如何将python应用程序(.py)转换为mac OSX

应用程序(.app)。就像py2exe一样。



i使用这些:
http://undefined.org/python/py2app.html
http://effbot.org/pyfaq/how-do-i-create-a-pyc-file.htm
< blockquote class =post_quotes>
但是我也想知道,因为你的应用程序文件夹在mac上它通常没有一个实际的

文件夹

每个应用程序的
。而是一个图标。所以对于firefox,你只看到图标。

不像

windows,你有一个包含所有内容的文件夹,而实际的

程序是

。所有应用程序信息都存储在哪里?就在.app?



OSX上的应用程序也是文件夹,但是使用保留的.app扩展名

操作系统然后将其显示为应用程序(右键单击一个应用程序并选择

''显示包内容'')


py2app为您创建所有这些


最后

是否有像py2exe这样的app for mac,有没有办法

要跳过

中间人并将其直接转换为.dmg内置应用程序?

-


$ b $ d dmg是一张磁盘映像,类似在Windows上使用IE浏览器

您可以使用磁盘工具创建一个空的,然后将所有内容放入

它不是安装程序


>



欢呼

Arno

解决方案

在Sun, 2008年7月13日00:58:59 +0200,Python.Arno写道:

http://undefined.org/python/py2app.html



py2app将Python本身捆绑到应用程序中,对吧?我想知道,是否有没有

的方法来创建一个依赖于现有的
Python安装的应用程序包,因为OS X已经附带了Python?我有一个小小的

程序(~20k),我想把它变成一个应用程序包,如果只是为了
压制控制台窗口,我'如果我能避免的话,我宁愿不要整个Python

翻译。


-

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 - 传递它




2008年7月28日,03.59,William McBrine写道:


On Sun,2008年7月13日00:58:59 +0200,Python.Arno写道:


> http://undefined.org/python/py2app.html



py2app将Python本身捆绑到应用程序中,对吧?我想知道,有没有

没有

创建依赖于现有安装的应用程序包的方式



Python,因为OS X已经附带Python?我有一个小小的

程序(~20k),我想把它变成一个应用程序包,如果只是为了
压制控制台窗口,我'如果我能避免的话,我宁愿不要把整个

Python

口译员。


-

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 - 传递它

-
http://mail.python.org/mailman/listinfo/python-list



Platypus是一个通用的开源程序,用于在Macintosh(GUI)应用程序中包装脚本




--- -------------------------------

光头党对移民非常厌倦,以至于他们要去了搬到

a不接受移民的国家!

Tommy Nordgren
到************ @ comhem.se


周一,28日ul 2008 19:51:26 +0200,Tommy Nordgren写道:


有一个Platypus,一个包装脚本的通用开源程序

在Macintosh(GUI)应用程序中。



谢谢。我试过Platypus,它接近我想要的东西。但是我仍然无法摆脱小型的控制台。弹出窗口

我的Tkinter应用程序。


-

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 - 传递



On 13 jul 2008, at 00:39, Alexnb wrote:

>
Hi All

I am wondering what I can do to turn a python app (.py) into a mac OSX
applicaiton (.app). Just like py2exe does.

i use these:
http://undefined.org/python/py2app.html
http://effbot.org/pyfaq/how-do-i-create-a-pyc-file.htm

But I am also wondering since in
your applications folder on macs it usually doesn''t have an actual
folder
for each app. Rather an icon. so for firefox, you just see the icon.
Unlike
windows where you have a folder with everything, and the actual
program is
in it. where is all the application info stored? just in the .app?

apps on OSX are also folder, yet with the reserved .app extension
the OS then presents this as an app (right click on an app and choose
''Show package content'')

py2app creates all that for you

Finally
whether or not there is an app like py2exe for mac, is there a way
to skip
the middle man and turn it straight into a .dmg with the app inside?
--

a dmg is a disk image, similar to iso on windows
you can create an empty one with Disk Utility then drop everything in
it''s NOT an installer

>

cheers
Arno

解决方案

On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote:

http://undefined.org/python/py2app.html

py2app bundles Python itself into the app, right? I wonder, is there no
way to create an app bundle that relies on the existing installation of
Python, since OS X already comes with Python? I have a tiny little
program (~20k) that I''d like to make into an app bundle, if only to
suppress the console window, and I''d rather not lump in the whole Python
interpreter if I can avoid it.

--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -- pass it on



On 28 jul 2008, at 03.59, William McBrine wrote:

On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote:

>http://undefined.org/python/py2app.html


py2app bundles Python itself into the app, right? I wonder, is there
no
way to create an app bundle that relies on the existing installation
of
Python, since OS X already comes with Python? I have a tiny little
program (~20k) that I''d like to make into an app bundle, if only to
suppress the console window, and I''d rather not lump in the whole
Python
interpreter if I can avoid it.

--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -- pass it on
--
http://mail.python.org/mailman/listinfo/python-list

There is Platypus, a general open source program to wrap a script
in an Macintosh (GUI) Application.

----------------------------------
Skinheads are so tired of immigration, that they are going to move to
a country that don''t accept immigrants!
Tommy Nordgren
to************@comhem.se



On Mon, 28 Jul 2008 19:51:26 +0200, Tommy Nordgren wrote:

There is Platypus, a general open source program to wrap a script
in an Macintosh (GUI) Application.

Thanks. I tried Platypus, and it''s close to what I want. But I still
can''t seem to get rid of the small "Console" window that pops up behind
my Tkinter app.

--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -- pass it on


这篇关于Re:喜欢py2exe,但是在mac上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆