Python Win32 Silent Install

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Gerrans

    #1

    Python Win32 Silent Install

    Looks like the installer for the Win32 extensions has changed from Wise to
    distutils, so now my automated silent installations don't work anymore.
    Anyone know if the distutils binary installer can be run silently? I
    haven't been able find a command line reference for distutils binaries (I'm
    still sifting through http://www.python.org/doc/current/dist/, though...).

    Maybe there is a better way to do an unattended install of the Win32
    extensions (that is, perhaps without using the binary)?

    Anyway, I'm looking into this on the python.org and starship pages, but I
    just thought I'd see if anyone can point me in the right direction...

    - Matt


  • Thomas Heller

    #2
    Re: Python Win32 Silent Install

    "Matt Gerrans" <matt.gerrans@h p.com> writes:
    [color=blue]
    > Looks like the installer for the Win32 extensions has changed from Wise to
    > distutils, so now my automated silent installations don't work anymore.
    > Anyone know if the distutils binary installer can be run silently? I
    > haven't been able find a command line reference for distutils binaries (I'm
    > still sifting through http://www.python.org/doc/current/dist/, though...).[/color]

    There are no command line options for the distutils created installer,
    and silent installation is not possible.
    [color=blue]
    > Maybe there is a better way to do an unattended install of the Win32
    > extensions (that is, perhaps without using the binary)?[/color]

    I should be quite easy to write a Python script that opens the binary as
    a zipfile, and then does what the gui does without showing a gui.

    Thomas

    Comment

    • Trent Mick

      #3
      Re: Python Win32 Silent Install

      Matt Gerrans wrote:[color=blue]
      > Maybe there is a better way to do an unattended install of the Win32
      > extensions (that is, perhaps without using the binary)?[/color]

      You could use the ActivePython MSI package, which includes the PyWin32
      extensions and offers a silent install option:



      Cheers,
      Trent

      --
      Trent Mick
      trentm@activest ate.com

      Comment

      • Matt Gerrans

        #4
        Re: Python Win32 Silent Install

        That sounds easy enough, but I imagine the Acive State package requires some
        kind of licensing. I'm pre-installing on millions of consumer PCs.


        Comment

        • Steve Holden

          #5
          Re: Python Win32 Silent Install

          Matt Gerrans wrote:
          [color=blue]
          > That sounds easy enough, but I imagine the Acive State package requires some
          > kind of licensing. I'm pre-installing on millions of consumer PCs.
          >
          >[/color]
          Ah, so your group is responsible for all the "I've found Python on my
          computer, what does it do and can I remove it" messages we saw last year?

          You are right about ActiveState, the copy you download from their web
          site is licensed to prohibit redistribution. They might be prepared to
          cut you a special license, but you'd have to ask them about that.

          I'm guessing Mark Hammond would be able to build you a silent installer
          for a modest price.

          Off-topic, I'd be very interested to learn anything you could tell us
          about why HP are installing Python (what it's used for, what you
          experience has been, &c). If this could be made public it would be nice
          to include it as a "Python success story".

          regards
          Steve
          (PSF PR Committee Chair)
          --


          Holden Web LLC +1 800 494 3119

          Comment

          • Luke Skywalker

            #6
            Re: Python Win32 Silent Install

            On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <steve@holdenwe b.com>
            wrote:
            [color=blue]
            >You are right about ActiveState, the copy you download from their web
            >site is licensed to prohibit redistribution. They might be prepared to
            >cut you a special license, but you'd have to ask them about that.[/color]

            Does it mean it's not allowed to build an application with ActiveState
            Python, and generate an installer that installs the whole thing,
            forcing users to go to ActiveState's web site and download the
            interpreter? Gee, that changes everything...

            Luke.

            Comment

            • Steve Holden

              #7
              Re: Python Win32 Silent Install

              Luke Skywalker wrote:
              [color=blue]
              > On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <steve@holdenwe b.com>
              > wrote:
              >
              >[color=green]
              >>You are right about ActiveState, the copy you download from their web
              >>site is licensed to prohibit redistribution. They might be prepared to
              >>cut you a special license, but you'd have to ask them about that.[/color]
              >
              >
              > Does it mean it's not allowed to build an application with ActiveState
              > Python, and generate an installer that installs the whole thing,
              > forcing users to go to ActiveState's web site and download the
              > interpreter? Gee, that changes everything...
              >
              > Luke.[/color]

              Obviously the license agreement at

              would be the authoritative statement. ActiveState do, however, license
              their distribution for OEM purposes, as the links to the right of the
              above-quoted page suggest.

              However, the current Community License (v4) says: """ ...
              2. You may make and give away verbatim copies of this Package for
              personal use, or for use within your organization, provided that you
              duplicate all of the original copyright notices and associated
              disclaimers. You may not distribute copies of this Package, or copies of
              packages derived from this Package, to others outside your organization
              without specific prior written permission from ActiveState (although you
              are encouraged to direct them to sources from which they may obtain it
              for themselves). ..."""

              This makes is pretty clear that if you plan to distribute outside your
              own organization they expect you to get an OEM license if you want to
              use their distribution.

              regards
              Steve
              --


              Holden Web LLC +1 800 494 3119

              Comment

              • Matt Gerrans

                #8
                Re: Python Win32 Silent Install

                You guessed correctly. Python is on HP (and Compaq now) PCs because I put
                it there.

                And yes, I did get the "I've found Python on my computer, what does it do
                and can I remove it" from the support group. How to answer that? You
                have a computer with Windows Script Host (JScript & VBScript) built in and
                you want to remove Python? I think the best answer is "it does all kinds
                of wonderful things! You can remove it, of course (easy enough, it is in
                the "Add / Remove Programs" list, after all), but why don't you learn how to
                use it instead? (I even unhooked the file association to prevent Python
                file attachments in emails from giving a black eye to Python, so out of the
                box, it was relatively safe).

                I've use Python and the Win32 extensions for much of the automation of the
                process that pre-installs all the software on the PCs. Of course, Python
                is very versatile and is ideal for the wide range of tasks, large and small
                that are involved. Being that it is both powerful and easy to learn (and
                also because of no lack of evangelism (I hate that term, but don't have a
                better synonym) on my part), it has been adopted as the main language used
                by the whole division for build-automation related tasks. Before Python, I
                wrote the tools in C++ and did scripting with JScript. I don't think I
                have to tell anyone on this list how dramatic an increase in productivity
                Python can give over these in many areas (there are a still a few areas
                where the C++ tools reign, but Python also works well with those).

                I was contacted by Kevin Altis and later Stephan Deibel about doing a Python
                success story about this and I was game. I did start it, but didn't get
                it finished in time for the Python Success Story book before OSCON 2004 in
                July and have since put it on the back burner. I need to take a little
                vacation from work, so I can finish that.

                - Matt


                Comment

                • Peter Hansen

                  #9
                  Re: Python Win32 Silent Install

                  Matt Gerrans wrote:[color=blue]
                  > You guessed correctly. Python is on HP (and Compaq now) PCs because I put
                  > it there.[/color]

                  Do you think you could expand on the brief description about this
                  that is to be found in the following page?

                  The official home of the Python Programming Language


                  The python.org webmaster email address gets *lots* of requests
                  from innocent and ignorant users who are concerned about finding
                  this thing called "Python" on their new machines, and most of
                  them seem curiously more interested in removing it than in discovering
                  what it actually is there for.

                  The auto-response points them to the above page, I believe, and it
                  would perhaps save the webmaster types some time if there was a more
                  official HP version of the situation than the "Apparently some of
                  HP/Compaq's administrative tools are written in Python." comment that is
                  there now.

                  -Peter

                  Comment

                  • Brad Tilley

                    #10
                    Re: Python Win32 Silent Install

                    Peter Hansen wrote:
                    .... innocent and ignorant users who are concerned about finding[color=blue]
                    > this thing called "Python" on their new machines, and most of
                    > them seem curiously more interested in removing it than in discovering
                    > what it actually is there for.[/color]

                    This has been my experience as well. I don't have millions or even
                    thousands of users... only hundreds. However, this is the exact same
                    reason that I try to hide Python installs and make them unremovable. I
                    guess all of the Windows based Spyware and Adware have made people
                    overly cautious... if it looks suspicious, then remove it. To the
                    average user, the name 'Python' doesn't sound harmless either.

                    Comment

                    • David Ascher

                      #11
                      Re: Python Win32 Silent Install

                      Luke Skywalker wrote:
                      [color=blue][color=green]
                      >> On Wed, 01 Dec 2004 17:15:38 -0500, Steve Holden <steve@holdenwe b.com>
                      >> wrote:
                      >>[color=darkred]
                      >>> You are right about ActiveState, the copy you download from their web
                      >>> site is licensed to prohibit redistribution. They might be prepared
                      >>> to cut you a special license, but you'd have to ask them about that.[/color]
                      >>
                      >> Does it mean it's not allowed to build an application with ActiveState
                      >> Python, and generate an installer that installs the whole thing,
                      >> forcing users to go to ActiveState's web site and download the
                      >> interpreter? Gee, that changes everything...
                      >>
                      >> Luke.[/color][/color]

                      Steve Holden wrote:
                      [color=blue]
                      > Obviously the license agreement at
                      > http://www.activestate.com/Products/...agreement.plex
                      > would be the authoritative statement. ActiveState do, however, license
                      > their distribution for OEM purposes, as the links to the right of the
                      > above-quoted page suggest.
                      >
                      > However, the current Community License (v4) says: """ ...
                      > 2. You may make and give away verbatim copies of this Package for
                      > personal use, or for use within your organization, provided that you
                      > duplicate all of the original copyright notices and associated
                      > disclaimers. You may not distribute copies of this Package, or copies of
                      > packages derived from this Package, to others outside your organization
                      > without specific prior written permission from ActiveState (although you
                      > are encouraged to direct them to sources from which they may obtain it
                      > for themselves). ..."""
                      >
                      > This makes is pretty clear that if you plan to distribute outside your
                      > own organization they expect you to get an OEM license if you want to
                      > use their distribution.[/color]

                      True -- however it's worth knowing that we often do zero-cost OEM
                      licensing in a variety of settings, such as magazine/book publishers,
                      etc. We take each request on a case-by-case basis, and we don't
                      particularly enjoy squeezing water out of stones[*]. We don't bite, so
                      people should feel free to email us if they have specific
                      questions/proposals.

                      As an interesting aside, HP licenses ActivePerl for their HP-UX
                      distributions as part of a more complex contract (we also maintain a
                      repository of Perl modules for easy installation of binary packages, etc.).

                      -- David Ascher
                      Managing Director & Chief Technologist
                      ActiveState -- Dynamic Tools for Dynamic Languages
                      [*] That expression is fun, but reminds me of how much water really _is_
                      in rocks. There's an amazing display at the Smithsonian in DC showing
                      how much equivalent liquid water is in a cubit foot (IIRC) of various
                      kinds of rocks. Stunning.

                      Comment

                      • David Fraser

                        #12
                        Re: Python Win32 Silent Install

                        Thomas Heller wrote:[color=blue]
                        > "Matt Gerrans" <matt.gerrans@h p.com> writes:
                        >
                        >[color=green]
                        >>Looks like the installer for the Win32 extensions has changed from Wise to
                        >>distutils, so now my automated silent installations don't work anymore.
                        >>Anyone know if the distutils binary installer can be run silently? I
                        >>haven't been able find a command line reference for distutils binaries (I'm
                        >>still sifting through http://www.python.org/doc/current/dist/, though...).[/color]
                        >
                        >
                        > There are no command line options for the distutils created installer,
                        > and silent installation is not possible.
                        >
                        >[/color]

                        What I've often done is combine other people's extensions into my
                        package by importing stuff from their distutils setup scripts. Now that
                        pywin32 is using distutils this should be possible too :-)

                        David

                        Comment

                        Working...