Python-2.5.exe?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Burton

    Python-2.5.exe?

    What Python is best for installing to a USB Drive? I've actually got
    2.5 on a drive, but I forget which installation package I used. It
    seems to me that it was an EXE file, but I cannot seem to find one of
    those today.

    Can the Python-2.5.msi installation files from python.org be installed
    so as not to touch the registry, to make them portable?

    --
    Andrew Burton
    tuglyraisin@aol .com
    http://utilitarian.us - A Guide to Esoteric Technology in Paragon City
    http://jarodrussell.livejournal.com/ - Take a guess. ;)
  • Fredrik Lundh

    #2
    Re: Python-2.5.exe?

    Andrew Burton wrote:
    What Python is best for installing to a USB Drive? I've actually got
    2.5 on a drive, but I forget which installation package I used. It
    seems to me that it was an EXE file, but I cannot seem to find one of
    those today.
    >
    Can the Python-2.5.msi installation files from python.org be installed
    so as not to touch the registry, to make them portable?
    python doesn't depend on the registry settings for normal use, so
    you can simply install python as usual, copy python25.dll from
    c:\windows\syst em32 to c:\python25, and then copy (or move) the
    entire c:\python25 tree to your USB drive.

    </F>

    Comment

    • Laurent Pointal

      #3
      Re: Python-2.5.exe?

      Andrew Burton wrote:
      What Python is best for installing to a USB Drive? I've actually got
      2.5 on a drive, but I forget which installation package I used.
      Maybe this one ? http://www.voidspace.org.uk/python/movpy/
      It
      seems to me that it was an EXE file, but I cannot seem to find one of
      those today.
      >
      Can the Python-2.5.msi installation files from python.org be installed
      so as not to touch the registry, to make them portable?
      It seems movpy can install Python2.5 on an USB Key.

      A+

      Laurent.

      Comment

      • John Salerno

        #4
        Re: Python-2.5.exe?

        Fredrik Lundh wrote:
        python doesn't depend on the registry settings for normal use, so
        you can simply install python as usual, copy python25.dll from
        c:\windows\syst em32 to c:\python25, and then copy (or move) the
        entire c:\python25 tree to your USB drive.
        Is it safe to assume that if you do this, Python first looks in
        C:\Python25 for the dll file, before trying to find the non-existent (on
        the USB drive) C:\Windows\Syst em32?

        Thanks.

        Comment

        • Fredrik Lundh

          #5
          Re: Python-2.5.exe?

          John Salerno wrote:
          >python doesn't depend on the registry settings for normal use, so
          >you can simply install python as usual, copy python25.dll from
          >c:\windows\sys tem32 to c:\python25, and then copy (or move) the
          >entire c:\python25 tree to your USB drive.
          >
          Is it safe to assume that if you do this, Python first looks in
          C:\Python25 for the dll file, before trying to find the non-existent (on
          the USB drive) C:\Windows\Syst em32?
          Python looks for a DLL in the same directory as the EXE before it looks
          anywhere else (this is standard Windows behaviour).

          </F>

          Comment

          • Martin v. Löwis

            #6
            Re: Python-2.5.exe?

            John Salerno schrieb:
            Is it safe to assume that if you do this, Python first looks in
            C:\Python25 for the dll file, before trying to find the non-existent (on
            the USB drive) C:\Windows\Syst em32?
            python25.dll is found through mechanisms of the operating system, not
            through code in Python. The operating system loads DLLs in the order
            specified here:



            As you can see, the directory containing the application is searched first.

            Regards,
            Martin

            Comment

            • Nick Craig-Wood

              #7
              Re: Python-2.5.exe?

              Fredrik Lundh <fredrik@python ware.comwrote:
              Andrew Burton wrote:
              >
              What Python is best for installing to a USB Drive? I've actually got
              2.5 on a drive, but I forget which installation package I used. It
              seems to me that it was an EXE file, but I cannot seem to find one of
              those today.

              Can the Python-2.5.msi installation files from python.org be installed
              so as not to touch the registry, to make them portable?
              >
              python doesn't depend on the registry settings for normal use, so
              you can simply install python as usual, copy python25.dll from
              c:\windows\syst em32 to c:\python25, and then copy (or move) the
              entire c:\python25 tree to your USB drive.
              As well as the above, I find a little .bat file like this to set some
              paths and start python or your application is helpful, eg

              @echo off
              set DEMOHOME=%CD%
              set PYTHONHOME=%DEM OHOME%\Python24
              set PYTHONPATH=%PYT HONHOME%;%DEMOH OME%\Demo\Pytho n
              set PYTHON=%PYTHONH OME%\python.exe
              set PYTHONW=%PYTHON HOME%\pythonw.e xe
              set PATH=%PYTHONHOM E%;%PATH%
              start "Demo" "%PYTHONW%" "demo.pyw"

              --
              Nick Craig-Wood <nick@craig-wood.com-- http://www.craig-wood.com/nick

              Comment

              Working...