Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4195 > unrolled thread

Re: Installing programs that depend on, or are, python extensions.

Started byDavid Cournapeau <cournape@gmail.com>
First post2011-04-30 17:39 +0900
Last post2011-05-03 03:48 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Installing programs that depend on, or are, python extensions. David Cournapeau <cournape@gmail.com> - 2011-04-30 17:39 +0900
    Re: Installing programs that depend on, or are, python extensions. "James A. Donald" <jamesdnld730@gmail.com> - 2011-05-03 03:48 -0700

#4195 — Re: Installing programs that depend on, or are, python extensions.

FromDavid Cournapeau <cournape@gmail.com>
Date2011-04-30 17:39 +0900
SubjectRe: Installing programs that depend on, or are, python extensions.
Message-ID<mailman.1016.1304152792.9059.python-list@python.org>
On Sat, Apr 30, 2011 at 2:19 PM, James A. Donald <jamesdnld730@gmail.com> wrote:
> I have noticed that installing python programs tends to be hell,
> particularly under windows, and installing python programs that rely
> on, or in large part are, python extensions written in C++ tends to be
> hell on wheels with large spiky knobs and scythes on the wheels.
>
> Is this because such install are inherently hard to do and hard to
> write, or is it because Install tends to be done last, and therefore
> not done at all?

Most likely both.

Packaging complex application is hard, and I think few programmers
like doing it, so it is rarely done correctly.

>
> Can anyone suggest any examples of such a program with a clean windows
> install that shows how it was done?
>
> By windows install, I mean you run setup.exe, and get a program group,
> file types registered, and an entry in the add/remove programs list, I
> do not mean fourteen pages of direly incomplete notes which do not
> actually work for versions later than 1.01, and do not work for
> version 1.01 unless one has already installed the complete developer
> environment.

Well, python itself is a reasonably good example I think. But if you
are interested in having one python program which is a one click
install without requiring the user to even install python, you will
need to look into tools like py2exe which can create all the files
necessary to do so from an existing python package. Then, you package
those files into a nice installer. I like nsis, which is open source
and relatively well documented, but there are other solutions as well.

cheers,

David

[toc] | [next] | [standalone]


#4535

From"James A. Donald" <jamesdnld730@gmail.com>
Date2011-05-03 03:48 -0700
Message-ID<7142c2e5-5c54-4f85-a957-2797560fe97f@s41g2000prb.googlegroups.com>
In reply to#4195
On Apr 30, 6:39 pm, David Cournapeau <courn...@gmail.com> wrote:
> On Sat, Apr 30, 2011 at 2:19 PM, James A. Donald <jamesdnld...@gmail.com> wrote:
>
> > I have noticed that installingpythonprograms tends to be hell,
> > particularly underwindows, and installingpythonprograms that rely
> > on, or in large part are,pythonextensionswritten in C++ tends to be
> > hell on wheels with large spiky knobs and scythes on the wheels.
>
> > Is this because suchinstallare inherently hard to do and hard to
> > write, or is it becauseInstalltends to be done last, and therefore
> > not done at all?
>
> Most likely both.
>
> Packaging complex application is hard, and I think few programmers
> like doing it, so it is rarely done correctly.
>
>
>
> > Can anyone suggest any examples of such a program with a cleanwindows
> >installthat shows how it was done?
>
> > Bywindowsinstall, I mean you run setup.exe, and get a program group,
> > file types registered, and an entry in the add/remove programs list, I
> > do not mean fourteen pages of direly incomplete notes which do not
> > actually work for versions later than 1.01, and do not work for
> > version 1.01 unless one has already installed the complete developer
> > environment.
>
> Well,pythonitself is a reasonably good example I think. But if you
> are interested in having onepythonprogram which is a one clickinstallwithout requiring the user to eveninstallpython, you will
> need to look into tools like py2exe which can create all the files
> necessary to do so from an existingpythonpackage. Then, you package
> those files into a nice installer. I like nsis, which is open source
> and relatively well documented, but there are other solutions as well.
>
> cheers,
>
> David

py2exe would work, but a correct installer would install Python if not
present, then install the program.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web