Automatically installing libraries?

C

Chaz Ginger

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
 
J

John Machin

Chaz said:
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:
http://peak.telecommunity.com/DevCenter/setuptools

HTH,
John
 
B

Bruno Desthuilliers

Chaz said:
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):

http://peak.telecommunity.com/DevCenter/setuptools
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top