On 4/22/09 5:05 PM, Jim Fulton wrote:
On Apr 22, 2009, at 11:01 AM, Wichert Akkerman wrote:
On 4/22/09 4:57 PM, Jim Fulton wrote:
Perhaps you could provide (or point to) an example that illustrates this problem.
I want to keep my python install clean, so I do not have setuptools installed system-wide. Instead I have a small bin-directory managed by buildout which creates a python interpreter with setuptools, using this snippet:
[setuptools] recipe = zc.recipe.egg interpreter = spython eggs = setuptools scripts = spython
That allows me to use "spython setup.py sdist register upload". setup.py is invoked with __file__ pointing to the spython wrapper script, so any attempt in setup.py to use __file__ to found files will fail.
This sounds like a bug in interpreter-script's handling of scripts passed to it. I'll look into that.
Thanks
BTW, did you realize that buildout has a setup command that does what your spython script does (and a little more)?
I was not aware of that. I can see that being useful. Most of my packages do not have their own buildout, so this won't help much for this particular issue I'm afraid. Wichert. -- Wichert Akkerman<wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.