How to distribute a usable python program to a python which doesn't have Distribute installed?
I've created a Windows Binary installer using python setup.py bdist_wininst
. The setup.py contains a console script entry point, so that a Windows .exe file is created and placed in %python%\Scripts
on the destination machine, as per Automatic Script Creation.
However running the installed script on a machine with a virgin python install yields:
D:\Py3.2.5> scripts\foo.exe
Traceback (most recent call last):
File "D:\Py3.2.5\scripts\foo-script.py", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
No module named pkg_resources tells me this error is because Distribute is not installed.
How do I get my installer to include Distribute so I don't have to tell our users "before you install our program you have to go install this other program"?