On Thu, Feb 17, 2011 at 12:33 PM, mongoose <darrenma1...@gmail.com> wrote: > Hi, > > I've created a django project with virtualenv on my server. It is an > Ubuntu server. I have checked it into svn. Now I'm on a windows > machine and have checked out the project. I noticed however that the > activate and deactivate scripts are in bash when created through linux > and are .bat files in windows. Furthermore the pip on my windows > machine is a exe file where on the project created through ubuntu it's > not. > > My question then is: is there anyway to setup my windows environment > so that I'm able to work from a windows machine (perhaps installing > bash on windows or something), is there something I can do when > creating the project through ubuntu to allow for this perhaps or will > I be limited to working on this kind of project via linux? > > Question is also up on stackoverflow: > http://stackoverflow.com/questions/5028888/virtualenv-django-project-created-through-ubuntu-checkout-out-to-a-windows-machi >
You shouldn't be committing the environment to RCS, you should be committing a script which creates the environment. For example, my projects all contain a 'bootstrap' script which sets up the environment and installs all required packages. If you want to develop on windows and nix, then you would probably need two scripts, one shell script for nix, one batch script for windows. Functionally, they should do the same things: invoke virtualenv to create the environment if it doesnt exist invoke pip to install the required packages Here is a nix bootstrap script: #!/bin/sh if [ ! -d "environ" ]; then virtualenv environ fi ln -sf environ/bin/activate . ./activate pip install -r requirements.pip Cheers Tom -- 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.