I have almost written a barely usable version of Notalon, my Cornell note-taking application, so I want to turn it into an executable release version via py2exe. However, I am hitting several snags.
First of all, here is my setup.py:
#!/usr/bin/python
from distutils.core import setup
import py2exe
setup(name = ‘Notalon’,
version = ‘1.0’,
description = ‘Notalon Cornell Notes Application’,
author = 'Saketh',
author_email = 'saketh.bhamidipati@gmail.com',
url = '[http://catechu.org](http://catechu.org)',
packages = ["C:\Python24\Lib\site-packages\elementtree",
"C:\Python24\Lib\site-packages\wx-2.6-msw-unicode\wx"]
)
Please bear with me, because I am wholly new to this py2exe business.
First of all, where am I supposed to specify the files in my application (
Notalon.py and NotalonWindow.py)? I think there is a “console” parameter, but I have no idea where to put it. My application uses two libraries, ElementTree and wxPython; have I linked to them correctly?
Second, why am I receiving an error about the directory to wx? Specifically, this error:
error: package directory ‘C:\Python24\Lib\site-packages\wx-2\6-msw-unicode\wx’ does not exist
Notice that it turned the period in my path to wx in my setup.py into a slash. I’m on Windows, and I’m sure some of you have gotten py2exe to work with wxPython, so I’m counting on your experience to fix this problem.
I am so close to finishing my first-ever usable application that I don’t want it to fall apart at such a simple stage.
Thanks in advance.
-Saketh