By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,814 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,814 IT Pros & Developers. It's quick & easy.

Distutils confusion - probably something simple

P: n/a
Ok, I am struggling with this setup.py. My python script happens to use the
mxBase library, specifically the mx.DateTime package. That's the only "third
party" package I use. I've gone through Nutshell book and the distutils
docs, but am not getting the syntax probably..

I always get this at the end of the distutils command ( python setup.py
py2exe ):

The following modules appear to be missing <-- pasted directly
['mxDateTime.__version__']

( A menu1.exe file is in fact created though)

My setup.py is:
------------------------------------------
#!Python

from distutils.core import setup
import py2exe
setup(
console=["menu1.py"],
name="MyBackup",
version="1.0",
packages=['mx', 'mx.DateTime'],
py_modules=['menu1','OregonBackup','backup_config'],
data_files=[('.',['backup.xml','some.ini'])] )
------------------------------------------

( incidentally, menu1.py specified above is the py file that calls
everything else of course, but my OregonBackup.py file is what actually
contains: "import mx.DateTime" - I don't know if that actually matters)

I actually put all of my files directly into the
C:\Python23\Lib\site-packages folder, so that "mx" folder can be seen by
distutils.
Running on Win XP.

Thanks
Steve
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.