Distutils: correct setup script
Martyn Quick
martyn_quick at yahoo.co.uk
Wed Nov 27 16:57:50 EST 2002
I think I am misunderstanding the correct way to create a setup script
for distutils. I've written a collection of python modules with the
follow structure:
basedir: contains most of the modules and a script 'myscript.py'
which is the one I run python on.
basedir/data: a package containing a file '__init__.py' (as it
should) and then various data files
I tried a setup of the following type:
# setup.py
from distutils.core import setup
setup(name="MQscript",
packages = 'data',
py_modules = ['module1', 'module2', ... ])
However, this gave the error that I'm not allowed to list modules and
packages at the same time.
What's the correct form for my setup file?
Cheers,
Martyn
More information about the Python-list
mailing list