NOOB: Developing using python on two different computers

S

Smeagol

Hi there,

Occasionally I have to develop on two different computers, and I was
wondering if there was a way to copy the python "environment" from one
to the other?

Access to the data is trivial (networked database) but various
packages etc exist on one computer, and I want to ensure I have
everything package-wise on the other.

Both are "windows" machines (native windows box and a Macbook with
VMWare running XP)...

Is it as simple as copying the Python directory, or is there a script
I can run that will tell me what packages are installed on the native
windows box and then I can use easy_install to update the VM partition
on the Macbook?

Much obliged for any help.
 
J

Jonathan Gardner

Hi there,

Occasionally I have to develop on two different computers, and I was
wondering if there was a way to copy the python "environment" from one
to the other?

Access to the data is trivial (networked database) but various
packages etc exist on one computer, and I want to ensure I have
everything package-wise on the other.

Both are "windows" machines (native windows box and a Macbook with
VMWare running XP)...

Is it as simple as copying the Python directory, or is there a script
I can run that will tell me what packages are installed on the native
windows box and then I can use easy_install to update the VM partition
on the Macbook?

Simple copy won't do it.

Check out virtualenv (http://pypi.python.org/pypi/virtualenv).
Reinstalling each env from scratch is usually the best bet. List your
dependencies in your packages and all you have to do is easy_install
your packages.
 

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,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top