How to build python code for mac os x using cx_freeze on windows?
<p>I have installed cx_freeze and it works like a charm to build .exe but I want to make executable file of my python program for mac os x using windows 7. Can you guide me how I can do it using cx_freeze or any other application.</p>

<p>I use following code to build .exe</p>

<pre><code>from cx_Freeze import setup, Executable
build_exe_options = {
"packages": [],
'includes': ['lxml.etree', 'lxml._elementpath', 'gzip'],
'excludes' : ['boto.compat.sys',
              'boto.compat._sre',
              'boto.compat._json',
              'boto.compat._locale',
              'boto.compat._struct',
              'collections.abc',
              'boto.compat.array'],
"include_files": []}

setup(
    name = "xyz",
    version = "0.1",
    description = "",
    author = "Dengar",
    options = {"build_exe": build_exe_options},
    executables = [Executable("xyz.py")]
)
</code></pre>

<p>There is no simple way. You need to compile your app on OS X to include the OS X specific libraries (the shared libraries and other dependencies). </p>

<p>You need to do this on OS X. </p>

python windows osx cx-freeze