Sorry to keep pushing on this, I just need to "scratch my own itch" and
build regular exe's on OSX. I tested the same script on clean installs of
Linux and Windows and it works fine. I will have to dive deeper into the
setuptools  code and figure out what the issue is.

Thanks,
Dan

On Thu, Mar 4, 2010 at 8:49 AM, Daniel Griffin <[email protected]> wrote:

> Here is the stack trace.
> Traceback (most recent call last):
>   File
> "/Library/Python/2.6/site-packages/cx_Freeze/initscripts/Console.py", line
> 27, in <module>
>     exec code in m.__dict__
>   File "hello.py", line 8, in <module>
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/__init__.py",
> line 2, in <module>
>     from setuptools.extension import Extension, Library
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/extension.py",
> line 2, in <module>
>     from dist import _get_unpatched
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py",
> line 5, in <module>
>     from setuptools.command.install import install
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/__init__.py",
> line 13, in <module>
>     from distutils.command.bdist import bdist
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/bdist.py",
> line 29, in <module>
>     class bdist (Command):
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/bdist.py",
> line 37, in bdist
>     "(default: %s)" % get_platform()),
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/util.py",
> line 97, in get_platform
>     cfgvars = get_config_vars()
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/sysconfig.py",
> line 527, in get_config_vars
>     func()
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/sysconfig.py",
> line 384, in _init_posix
>     raise DistutilsPlatformError(my_msg)
> distutils.errors.DistutilsPlatformError: invalid Python installation:
> unable to open
> /Users/dgriff1/Downloads/cx_Freeze-4.1.2/samples/simple/build/exe.macosx-10.6-universal-2.6/HQController/lib/python2.6/config/Makefile
>
> Right now I am fudging sys.exec_prefix to point to my path since it gets
> set to "/".
>
> Dan
>
> On Thu, Mar 4, 2010 at 8:39 AM, Anthony Tuininga <
> [email protected]> wrote:
>
>> On Wed, Mar 3, 2010 at 7:08 PM, Daniel Griffin <[email protected]> wrote:
>> > I have gotten everything to work on OSX except scripts that import
>> > setuptools/pkg_resources. At run time these try to make references to
>> parts
>> > of the python installation, specifically
>> > prefix + lib/python2.6/config/Makefile
>> >
>> > I tried running this on windows and it worked fine. Is this stuff
>> supposed
>> > to get copied over? Can you point me to where in the code this is taken
>> care
>> > of?
>>
>> Ordinarily, the make file is not copied. I'm not sure how it works on
>> Windows but cx_Freeze certainly does nothing with such files itself.
>> Perhaps you can point me to the code in setuptools/pkg_resources that
>> is not working?
>>
>> Anthony
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> cx-freeze-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>>
>
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to