Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58046

Re: How do I update a virtualenv?

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
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; 'root': 0.05; '(using': 0.07; 'level,': 0.07; 'git': 0.09; 'indeed,': 0.09; 'subject:update': 0.09; 'subject:virtualenv': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'did,': 0.16; 'excluded': 0.16; 'file).': 0.16; 'folder,': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'cc:addr:python.org': 0.22; 'instead.': 0.24; 'skip': 0.24; 'cc:2**0': 0.24; 'mention': 0.26; 'this:': 0.26; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'though.': 0.31; 'problem': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'subject:?': 0.36; 'should': 0.36; 'project': 0.37; 'being': 0.38; 'files': 0.38; 'structure': 0.39; 'changed': 0.39; 'then,': 0.60; 'new': 0.61; 'simply': 0.61; 'first': 0.61; "you've": 0.63; 'to:addr:gmail.com': 0.65; 'believe': 0.68
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=wepfGUE5ezJLEVvX16oeJZlNk38Ig2ojlbDmx/rfjAM=; b=mrhF9HqOPSz803D1MTagiC92Ic3WjAPBQQG8EODnZHV68MG1hj9jsUw0EdDAeRyR/k 4QJIUR/xxCybz7lxgc9ggdsvd+GdWAgyAiQmn9woFC6pK1ut/piTWT4YWl8jEU332Bl0 Q69Pye/jb0RXGAqFb6x/Eg6ZcVyC+ckTksQPPSu73TSQLkQsJqbZ1Us72wBR6mqSjLkp 8Gi1LP8i9cBe6dYggVvkoMc+iLsy2hTLcy5Qc3rDl42Edsh/8bllAJZLp+r8Sd3Ut5zQ //HE8L9JVaaQbBUaWhlcql/6/9FEL5HRf5MWN1T8qS5/jEMPsnoeKJ1rxoxUQNRKjaMS /YGQ==
MIME-Version 1.0
X-Received by 10.50.129.39 with SMTP id nt7mr2797727igb.13.1383146327556; Wed, 30 Oct 2013 08:18:47 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <l4po8v$evn$2@dont-email.me>
References <CANc-5Uy367Mu-zN30Z8xKfE_Zf9q4G15E_oVtB+HOWPja6MNag@mail.gmail.com> <526EF04A.6070702@nedbatchelder.com> <CANc-5UxvR=woVE19a14rTAKX4qwzdPEVgoj0XxX169DU_uKMWw@mail.gmail.com> <526EFDAF.9010109@nedbatchelder.com> <CANc-5UxvqRuEoW3PEVxDnA+64SGTPQ9qWWnTOB0L8oMd2+G_LQ@mail.gmail.com> <7wmwlszsmr.fsf@benfinney.id.au> <mailman.1760.1383055740.18130.python-list@python.org> <l4po8v$evn$2@dont-email.me>
Date Wed, 30 Oct 2013 10:18:47 -0500
X-Google-Sender-Auth abrQ6-HX2_LiX-CmH9R77TpcUlw
Subject Re: How do I update a virtualenv?
From Skip Montanaro <skip@pobox.com>
To alex23 <wuwei23@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1811.1383146329.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383146330 news.xs4all.nl 15907 [2001:888:2000:d::a6]:46897
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58046

Show key headers only | View raw


> I believe you may have misread the instructions slightly. You should have a
> project structure like this:
>
>     my_project/
>         /venv
>         .gitignore
>
> The instructions mention adding 'venv' to your .gitignore, so it will be
> excluded from version control. If you have .git & .gitignore files inside
> your venv folder, then you've changed directory into it when you should be
> calling it from the project root instead.

I have .git and .gitignore at the top level, and venv is in
.gitignore. I did, indeed, misunderstand things though. That's the
problem with monkey-see-monkey-do. I completely glossed over the part
where venv was excluded from my git repo. That being the case then, to
update my virtualenv, I need to first create a new one in a fresh
directory (using my existing requirements.txt file). I should be able
to simply swap out the old venv directory for the new one.

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: How do I update a virtualenv? Skip Montanaro <skip@pobox.com> - 2013-10-29 09:08 -0500
  Re: How do I update a virtualenv? alex23 <wuwei23@gmail.com> - 2013-10-30 11:44 +1000
    Re: How do I update a virtualenv? Skip Montanaro <skip@pobox.com> - 2013-10-30 10:18 -0500

csiph-web