471,596 Members | 948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

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
Sep 18 '06 #1
2 996

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

HTH,
John

Sep 18 '06 #2
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):

http://peak.telecommunity.com/DevCenter/setuptools
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Sep 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Julia Goolia | last post: by
7 posts views Thread by Edward Diener | last post: by
reply views Thread by Steve | last post: by
1 post views Thread by Paul Watson | last post: by
1 post views Thread by Ken Dere | last post: by
1 post views Thread by zpinhead | last post: by
14 posts views Thread by Nader Emami | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.