You can't just copy your Python binary around (which is what you'd be doing if you attempt to copy the virtualenv itself) unless the systems are exactly the same (and even then I'd be reticent to do so). Why not just download and compile Python 2.7 to the production server? You can install that Python version into its own directory separate from the system Python, and then specify the path to that Python when creating the virtualenv on the production server.
On Feb 21, 2011, at 2:57 AM, Benedict Verheyen wrote: > Hi, > > > i have a Django project in a virtualdev. > Because it was developed before Debian squeeze, i wanted a recent version of > python > and compiled my own 2.7 version, then installed that in my virtual dev. > > Now for deploying to the production server, i had following scenario in mind: > - install programs and database that my programs needs (postgresql and so on) > - get my project on the server via svn > - install virtualdev, and install the requirements i got via the freeze > command on the dev server. > - fix paths in Apache, Nginx > > However, here i have a problem. To make the virtualdev environment, i need to > python version 2.7 > and that's not available on the server. > The compiled version is available on the dev server. > What's the most elegant solution? > > Copy the whole virtual environment to the server? > Make a package of the python install? > > Thanks for any insight, > Benedict > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > - Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.