Rich
Rich

Reputation: 12653

How to install many python extensions in one step

Is it possible to collect many Python extensions an install them in one step? I have a Python build environment for an open source project that often needs to be recreated on multiple machine. It's a pain to double click through a bunch of python extension exes every time we need to do this.

Ideally I'd like to package a complete build environment, Python, extensions, system environment variables, and all, into a one step install process. But a single step extension install would also be helpful. Is this possible?

Upvotes: 2

Views: 741

Answers (2)

user1846747
user1846747

Reputation:

Yes, you can do that... do you have pip(python indexed package) installed in your system? if not, then install it... and put all the extensions into a single text file... say requirements.txt...

This is done by running

pip freeze > requirements.txt

then by using pip you can install it... by using this command...

pip install -r requirements.txt...

it will install all the extensions mentioned in the file...

you can find the pip package here pip might help you...

Upvotes: 10

Lennart Regebro
Lennart Regebro

Reputation: 172239

You can with Distribute define dependencies of a package, and easy_install or pip will install all dependencies when you ask to install the package.

Upvotes: 1

Related Questions