Packaging Python Apps

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

    #1

    Packaging Python Apps

    Are there commands that can be used to install python apps into a dummy tree
    for later packaging? I would like to accomplish either of the following:

    when I run python setup.py install

    can I

    1) deposit all files into a specified directory like when I do
    make install DESTDIR=/foo

    2) have a do-nothing install like
    make -n install

    Thx
  • Steve Holden

    #2
    Re: Packaging Python Apps

    Peter wrote:
    [color=blue]
    > Are there commands that can be used to install python apps into a dummy tree
    > for later packaging? I would like to accomplish either of the following:
    >
    > when I run python setup.py install
    >
    > can I
    >
    > 1) deposit all files into a specified directory like when I do
    > make install DESTDIR=/foo
    >
    > 2) have a do-nothing install like
    > make -n install
    >
    > Thx[/color]
    For 1), wouldn't

    python setup.py build

    or its variants suffice.

    regards
    Steve
    --


    Holden Web LLC +1 800 494 3119

    Comment

    • Peter

      #3
      Re: Packaging Python Apps

      Steve Holden wrote:
      snip
      [color=blue]
      > For 1), wouldn't
      >
      > python setup.py build
      >
      > or its variants suffice.
      >
      > regards
      > Steve[/color]

      Well, build would make all the files, but I would like to perform a pseudo
      install so that I can see all that WOULD be installed. That way, I could
      package it so it could be installed on another PC without having to run a
      python script.

      Thanks for the reply

      Comment

      • Istvan Albert

        #4
        Re: Packaging Python Apps

        Peter wrote:
        [color=blue]
        > 1) deposit all files into a specified directory like when I do
        > make install DESTDIR=/foo[/color]

        see:

        python setup.py install --help
        [color=blue]
        > 2) have a do-nothing install like
        > make -n install[/color]

        python setup.py -n install

        Istvan.

        Comment

        • Peter

          #5
          Re: Packaging Python Apps

          Istvan Albert wrote:
          [color=blue]
          > Peter wrote:
          >[color=green]
          >> 1) deposit all files into a specified directory like when I do
          >> make install DESTDIR=/foo[/color]
          >
          > see:
          >
          > python setup.py install --help[/color]

          That's PRECISELY what I needed. It looks just like configure!

          Thanks a lot!
          [color=blue]
          >
          > Istvan.[/color]

          Comment

          Working...