Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Just out of curiosity I executed following command and I was surprised to see MS Windows Executables in Python installation directory.

    20:36:46 nixlap [~] $ locate -i -r exe$
    [snipped]
    /usr/lib/python2.6/dist-packages/setuptools/cli.exe
    /usr/lib/python2.6/dist-packages/setuptools/gui.exe
    /usr/lib/python2.7/dist-packages/setuptools/cli.exe
    /usr/lib/python2.7/dist-packages/setuptools/gui.exe
    /usr/lib/python2.7/distutils/command/wininst-6.0.exe
    /usr/lib/python2.7/distutils/command/wininst-7.1.exe
    /usr/lib/python2.7/distutils/command/wininst-8.0.exe
    /usr/lib/python2.7/distutils/command/wininst-9.0-amd64.exe
    /usr/lib/python2.7/distutils/command/wininst-9.0.exe
    /usr/lib/tomboy/Tomboy.exe
    /usr/share/mono/MonoGetAssemblyName.exe
    /usr/share/pyshared/setuptools/cli.exe
    /usr/share/pyshared/setuptools/gui.exe

Why do we need these '.exe' on Ubuntu installation? Particularly talking about the 'exe's in pyhton package. I just don't like the files ending in '.exe' :P

I can understand that banshee, tomboy, gbrainy use 'mono' but why can't they just name it something other than '.exe'

share|improve this question
    
Probably cause it saves them time and energy when porting the app to other platforms(in this case MS). –  nitstorm Dec 23 '11 at 14:44
add comment

1 Answer

up vote 6 down vote accepted

According to dpkg and the packages website these are part of the python2.7-dev package. This is not installed by default.

I believe they include the Windows installers to allow people to create portable self-contained projects more easily (without having to hunt down the current version installer) but I could be wrong.

If you want to know for sure (or suggest these files get removed) you can find several contact methods on the package information page.

Edit: and the Mono .exes are just Mono executables. They're distributed in exe form.

share|improve this answer
    
Yep. In particular, they are used by the distutils python setup.py bdist_wininst command to build a self extracting installer for Windows machines (which you can do from Ubuntu for architecture independent packages). –  James Henstridge Dec 23 '11 at 15:11
    
@JamesHenstridge Thanks for the explanation. So they are needed indeed. –  Muneeb Dec 23 '11 at 16:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.