views:

29

answers:

1

I'm using paver to build my Python application, and I'd like to create an executable using py2exe. I've got the following in my pavement.py:

from paver.setuputils import setup
from distutils.core import setup
import py2exe

import paver
paver.setuputils.install_distutils_tasks()

... but when I run paver py2exe I get "Build failed: py2exe is not a Task". What am I doing wrong?

A: 

From the tutorial, you just pass your "main" python script to the setup command:

from distutils.core import setup
import py2exe

setup(console=['hello.py'])

Have you tried building your execuable this way?

Justin Ethier
I'm using paver, not distutils
Chris B.