
10 Jan
2009
10 Jan
'09
10:59 p.m.
The above is an indication that your source code isn't being found. My guess is that since you're saying you want to install a "script" but can't import it, what you actually have is a standalone *module*, not a script or a package. find_packages() cannot find such modules, you must list them individually, e.g.:
py_modules = ['randomscript'],
rather than listing them in the 'packages' parameter.
I changed the setup.py to use the py_modules parameter vs. the find_packages() parameter, and it does work correctly now. -Ray
--
View this message in context: http://www.nabble.com/Unable-to-import-python-script-after-installing-using-...
Sent from the Python - distutils-sig mailing list archive at Nabble.com.