且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Dropbox如何在Windows和OS X上使用Python?

更新时间:2021-09-21 02:27:19

Dropbox在Mac上使用wxPython和PyObjC的组合(0.8系列中的wxPython较少).看起来他们已经建立了一些UI抽象层,但是并没有什么让人不知所措的,也就是说,他们正在以正确的方式来开发跨平台应用程序.

Dropbox uses a combination of wxPython and PyObjC on the Mac (less wxPython in the 0.8 series). It looks like they've built a bit of a UI abstraction layer but nothing overwhelming—i.e., they're doing their cross-platform app the right way.

它们包含自己的Python,主要是因为Mac上包含的Python版本因操作系统版本而异(并且Dropbox支持回溯至10.4 IIRC);此外,他们还自定义了Python解释器,以改善线程和I/O行为.

They include their own Python mainly because the versions of Python included on the Mac vary by OS version (and Dropbox supports back to 10.4 IIRC); also, they've customized the Python interpreter a bit to improve threading and I/O behavior.

(我不为Dropbox工作,也不具备任何内部知识;我所做的只是阅读他们的论坛并检查了Dropbox应用程序捆绑包中site-packages.zip中的文件名.)

(I do not work for Dropbox or have any inside knowledge; all I did was read their forums and examine the filenames in site-packages.zip in the Dropbox app bundle.)