5

Just out of curiosity I executed following command and I was surprised to see MS Windows executables in the 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 exes in Python package.

I just don't like the files ending in .exe.

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

  • Probably cause it saves them time and energy when porting the app to other platforms(in this case MS). – Nitin Venkatesh Dec 23 '11 at 14:44
7

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.

  • 1
    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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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