Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'essentially': 0.04; 'matches': 0.07; 'bits': 0.09; 'git': 0.09; 'refresh': 0.09; 'subject:update': 0.09; 'subject:virtualenv': 0.09; 'things,': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'django': 0.11; 'combination,': 0.16; 'combinations': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'investigate': 0.16; 'sync': 0.16; 'virtualenv.': 0.16; 'sender:addr:gmail.com': 0.17; 'packages.': 0.19; 'thanks.': 0.20; 'seems': 0.21; '(in': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'skip': 0.24; 'versions': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'nearly': 0.26; 'push': 0.26; 'switch': 0.26; 'updating': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'easier': 0.31; 'usually': 0.31; 'libraries': 0.31; 'piece': 0.31; 'wind': 0.31; 'figure': 0.32; 'stuff': 0.32; 'packaging': 0.33; 'maybe': 0.34; 'problem': 0.35; 'something': 0.35; 'case,': 0.35; 'done.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'done': 0.36; 'subject:?': 0.36; 'should': 0.36; 'application': 0.37; 'so,': 0.37; 'turn': 0.37; 'being': 0.38; 'remote': 0.38; 'server': 0.38; 'needed': 0.38; 'files': 0.38; 'anything': 0.39; 'sure': 0.39; 'enough': 0.39; 'days': 0.60; 'easy': 0.60; 'eventually': 0.60; 'is.': 0.60; 'new': 0.61; 'entire': 0.61; 'here': 0.66; 'overall': 0.69; 'have.': 0.93; 'imagine': 0.93; 'directly.': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=8XeBnyp5Dyx9WKn9U6B9bPYSgmXmWpOuCuwwBcFWzh0=; b=eHswbIq7mPmecnh6kQ0zgBUzyBJ71UT8GtjNIXGmdp+W9f052UZCSf/sPFHENozx+6 OjzB8asmvOTn5q3VrmgQGWVyHNmCc9v3MyHtYLXQwHskUYdpAGg9sPsE6a2ig9a/SZ75 +BzVHYTQwSl4CjT8Yyn+Xz5dIpanKDndUdBWkMccI12/uvaXuchfgOEm8g8TNZVFLVHq MxbYziRY5SyJF0thXlhig2C8QDAmxk8o6C58xSCtfkf8RZhxDvIqYZKJx1OizrUjfXKJ 2wu4yt5N5ndq+DTKo4/nSkQnxKMIaXI8JNpyAlakbF0/DUcZMRcFJyybkM8lD0eOLh4G b7Vg== MIME-Version: 1.0 X-Received: by 10.50.61.205 with SMTP id s13mr10685165igr.29.1383008859405; Mon, 28 Oct 2013 18:07:39 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <526EFDAF.9010109@nedbatchelder.com> References: <526EF04A.6070702@nedbatchelder.com> <526EFDAF.9010109@nedbatchelder.com> Date: Mon, 28 Oct 2013 20:07:39 -0500 X-Google-Sender-Auth: -P9B7H7LOEhKQIvY5Epqm-9OU0E Subject: Re: How do I update a virtualenv? From: Skip Montanaro To: Ned Batchelder Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383008867 news.xs4all.nl 15897 [2001:888:2000:d::a6]:57003 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57868 >> Hmmm... And my git repo? > > Usually the virtualenv is outside the git repo (and vice-versa), but git > repos are also easy to recreate from the git server if you need to. Maybe I > don't understand what you mean? I'm using Heroku, following their instructions. They have a "git init" in the midst of things, so I wind up with a git repo that matches up one-to-one for my Django project. ("git push" installs). Part of the problem here is, of course, that I have done essentially no web work since the days of editing HTML directly. I just have to hunt around for something I can sort of understand and that has some recommendations from someone I trust (in this case, some of the denizens of chicago@python.org), and head off in that direction. I'm sure the combinations of packaging systems, web application platforms, and distribution tools are nearly limitless. I don't enough time left to investigate and try out every combination, so for now, it's HomeBrew+Django+Heroku. The decision to switch from MacPorts to HomeBrew may well turn out to be problematic, but it is what it is. >> I imagine I will eventually figure this out, >> but updating an existing virtualenv in place to adapt to a new version >> of Python (say, a new micro) or some of its libraries (contents of >> requirements.txt) seems like it would be a very nice thing to have. > > "pip install --upgrade" will upgrade your Python packages. "pip install -r > requirements.txt" will install new packages or versions named in the > requirements.txt file. Thanks. That's done. So, in addition to the various virtualenv bits I needed to * move .git and .gitignore from the old directory * recreate the heroku stuff * set up the remote heroku association again * push everything * sync the database None of these things have anything to do with virtualenv, but they all were things *in* the virtualenv. There are clearly various dot files left laying around in my old virtualenv. I still think it would have been easier overall if I was able to refresh the virtualenv in place. It all boils down to a virtualenv only being one piece of a larger puzzle. I'm not sure its constraints should drive the entire process. Skip