py2app problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

py2app problem

Oliver King
Hi,

I'm trying to make a standalone executable using Enthought 7.3 and am running into a wall. Here is a very simple use-case which illustrates the problem.

The file test.py:
##################################
import time
print 'Hello world!'
time.sleep(5.0)
##################################

I create the setup.py file as follows:
py2applet --make-setup test.py

The next step is to create the standalone application, but this step fails:
------------------------------------------------------------------
$ python setup.py py2app
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'app'
  warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'py2app'
------------------------------------------------------------------

The contents of the setup.py file are:
##################################
"""
This is a setup.py script generated by py2applet

Usage:
    python setup.py py2app
"""

from setuptools import setup

APP = ['test.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

##################################

Has anyone come across this before and know how to fix it? I have setuptools version 0.6.

Cheers,
Oliver


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev