Automatically installing libraries?

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

    Automatically installing libraries?

    Here is a problem I am trying to solve; I am sure there must be an easy
    way to do it and I just don't know how.

    I have a rather large application that I am writing. To make it easy for
    the user to run I have them run a startup.py script. This script will
    try to load each of the third party libraries the application will need.
    If it is present, great. If it isn't, I would like to automatically
    install it. This is the heart of my problem: is there a Python
    equivalent to PERL's CPAN?

    Peace,
    Chaz
  • John Machin

    #2
    Re: Automatically installing libraries?


    Chaz Ginger wrote:
    Here is a problem I am trying to solve; I am sure there must be an easy
    way to do it and I just don't know how.
    >
    I have a rather large application that I am writing. To make it easy for
    the user to run I have them run a startup.py script. This script will
    try to load each of the third party libraries the application will need.
    If it is present, great. If it isn't, I would like to automatically
    install it. This is the heart of my problem: is there a Python
    equivalent to PERL's CPAN?
    >
    Check out setuptools:


    HTH,
    John

    Comment

    • Bruno Desthuilliers

      #3
      Re: Automatically installing libraries?

      Chaz Ginger wrote:
      Here is a problem I am trying to solve; I am sure there must be an easy
      way to do it and I just don't know how.
      >
      I have a rather large application that I am writing. To make it easy for
      the user to run I have them run a startup.py script. This script will
      try to load each of the third party libraries the application will need.
      If it is present, great. If it isn't, I would like to automatically
      install it. This is the heart of my problem: is there a Python
      equivalent to PERL's CPAN?
      Not quite. But you should definitively have a look at setuptools before
      proceeding to reinventing the SquareWheel(tm) :




      --
      bruno desthuilliers
      python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
      p in 'onurb@xiludom. gro'.split('@')])"

      Comment

      Working...