interpreter script sets __file__ incorrectly

Bug #368447 reported by Wichert Akkerman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

(copied from the discussion on zope-dev so it is archived here properly)

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.