building/installing python libs/modules...

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

    #1

    building/installing python libs/modules...

    paul,

    thanks for the replies to my issues!!! much appreciation.

    i've got the python app:


    and i've downloaded it, an untarred it...
    i have the dir structure, but i don't know what needs to be done now!!! i
    have a setup.py. does it get run?

    the Readme file didn't tell me how to build the app....

    i now, but everyone starts at something, sometime!!

    thanks

    -bruce


  • John Machin

    #2
    Re: building/installing python libs/modules...

    On 2/07/2006 5:37 AM, bruce wrote:[color=blue]
    > paul,
    >
    > thanks for the replies to my issues!!! much appreciation.
    >
    > i've got the python app:
    > http://www.boddie.org.uk/python/down...m-0.3.3.tar.gz
    >
    > and i've downloaded it, an untarred it...
    > i have the dir structure, but i don't know what needs to be done now!!! i
    > have a setup.py. does it get run?
    >
    > the Readme file didn't tell me how to build the app....
    >[/color]



    (see section headed "Installati on" at the bottom of the page)

    Comment

    • Ravi Teja

      #3
      Re: building/installing python libs/modules...

      > i've got the python app:[color=blue]
      > http://www.boddie.org.uk/python/down...m-0.3.3.tar.gz
      >
      > and i've downloaded it, an untarred it...
      > i have the dir structure, but i don't know what needs to be done now!!! i
      > have a setup.py. does it get run?
      >
      > the Readme file didn't tell me how to build the app....[/color]

      The setup.py is a distutils installer. The usual drill in that case is
      to simply type "python setup.py install". If the module is registered
      in PyPi (which this one is), you can just type "easy_insta ll
      libxml2dom" (after easy_install is setup) and you will not even need to
      download and extract.

      In this case, your module is a native wrapper. So you will need the
      libraries that it provides a wrapper for, installed. In this case
      (libxml2, libxml2dom). You will also need a C compiler.

      All this can be trivial on a unix based platform. However, if you are
      new and on Windows, this can be a hassle since you will have to
      manually setup your C compiler and the dependencies. Try to find a
      binary installer for native Python modules in MS Windows whenever you
      can.

      Here is a click and go installer built for Windows that I found from
      Google.


      Comment

      • Ravi Teja

        #4
        Re: building/installing python libs/modules...

        > Here is a click and go installer built for Windows that I found from[color=blue]
        > Google.
        > http://users.skynet.be/sbi/libxml-py...in32-py2.4.exe[/color]

        Oops! That is for libxml2, not libxml2dom.

        Comment

        Working...