1

I am using Linux, Fedora 18, 64bit. I'd like to know, is there a way to create Mac executable on Linux, from Python source code?

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
JadedTuna
  • 1,783
  • 2
  • 18
  • 32

1 Answers1

2

Yes, but you need a cross compiler. There's one here:

IMCROSS

  • Ok, thanks. But is it possible to use Py2App for example? – JadedTuna Oct 11 '13 at 21:54
  • I expect so, but you would need to insert the cross compiler into its toolchain. –  Oct 11 '13 at 21:59
  • It may not be easy. One of the things py2app does is use macholib to find dylib dependencies, and without a full set of system dylibs and frameworks it's going to end up thinking it's missing all kinds of requirements it needs to package up. Maybe if you can install a MacOSX10.foo.sdk and configure it properly? But I'm not sure that's easy, or legal... – abarnert Oct 11 '13 at 22:11
  • @abarnert, I am going to use IMCROSS :-) – JadedTuna Oct 12 '13 at 08:18
  • @Vik2015: Using IMCROSS doesn't magically fix everything. In particular, you still need to install a MacOSX10.foo.sdk and get it set up (at least there are instructions for doing so—but they're two major versions out of date…), and you will probably still need to fight with py2app. – abarnert Oct 14 '13 at 21:49