I created a custom paster command as described in http://pythonpaste.org/script/developer.html#what-do-commands-look-like. In my setup.py I have defined the entry point like this:
entry_points={
'paste.global_paster_command' : [
'xxx_new = xxxconf.main:NewXxx'
]
}
I’m inside an activated virtualenv and have installed my package via
python setup.py develop
If I run paster while inside my package folder, I see my custom command and I can run it via paster xxx .... But if I leave my package folder paster does not display my command anymore. I checked which paster and it’s the version of my virtualenv. I also started a python interpreter and imported xxxconf and it works fine.
I have no idea why my global command is not recognized when I’m outside my package folder!?
You are doing something wrong, it should work. This is the minimal working example, you can test it with your virtualenv:
blah/setup.py:blah/blah/xxx.py:blah/blah/__init__.py: empty.Now testing: