Hi,
I got some error messages when using ez_setup to download and use the easy_install.
# setup.py
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(name = "blabla",
test_suite = "some_test",
namespace_package = ["some_namespace"],
# many other options
)
It can download the setuptools-0.6c9-py2.6.egg file correctly, but when I run "python setup.py test" it complains:
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'namespace_packages'
warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'test'
It seems the easy_install egg isn't used, and the "setup" is just from the built-in distutil.
I did several things:
1) update the ez_setup.py but the only difference is it downloads the c11 egg, which doesn't work either.
2) unzip the egg to the current directory. "python setup.py test" passed...
3) install the easy_install. "python setup.py test" passed...
4) unzip the egg to the current directory, remove other files but only reserve pkg_resources.py and the egg. "python setup.py test" passed..
So I guess there might be some import problem in my machine (ubuntu lucid) that the pkg_resources.py cannot be loaded from the egg?
Thanks,
Pherl