Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Question Date: Wed, 9 Mar 2016 11:13:15 +1100 Lines: 33 Message-ID: References: <56df65a1$0$1596$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de G3lqj7rDbbZA0ubo1WLgTAkWYUa2tMvKE0zFP4b2V+pw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Question': 0.05; '*not*': 0.07; 'bash': 0.07; 'seemed': 0.07; 'cc:addr:python- list': 0.09; 'agree,': 0.09; 'complaining': 0.09; 'enormous': 0.09; 'git': 0.09; 'python': 0.10; 'wed,': 0.15; '"windows': 0.16; '(note,': 0.16; '(which,': 0.16; '2016': 0.16; 'available;': 0.16; 'bash,': 0.16; 'conceivably': 0.16; 'emulator': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'shells': 0.16; 'think?': 0.16; 'wrote:': 0.16; 'shell': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; '(the': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'command': 0.26; '(which': 0.26; 'linux': 0.26; 'skip:" 20': 0.26; 'message-id:@mail.gmail.com': 0.27; 'idea': 0.28; 'windows,': 0.29; 'environment': 0.29; "i'm": 0.30; 'work.': 0.30; "can't": 0.32; 'though,': 0.32; 'run': 0.33; 'problem': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'handle': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'world,': 0.35; 'activate': 0.35; 'displays': 0.35; 'installing': 0.35; 'expected': 0.35; 'but': 0.36; 'should': 0.36; 'instead': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'subject:: ': 0.37; 'operating': 0.37; 'received:209.85.213': 0.37; 'difference': 0.38; "won't": 0.38; 'received:209': 0.38; 'stuff': 0.38; 'sure': 0.39; 'does': 0.39; 'unable': 0.39; 'rather': 0.39; 'provide': 0.61; 'default': 0.61; 'no.': 0.62; 'skip:n 10': 0.62; 'within': 0.64; 'between': 0.65; 'mar': 0.65; 'worth': 0.67; 'activation.': 0.84; 'chrisa': 0.84; 'terrible': 0.84; 'to:none': 0.91; 'ports': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=Lvkf6PPXMUNJG2m/HKw8hyv0wY3Nh+Y2gVOr0ob5+Xs=; b=OVue/oJOlNgJaqJzy1hPw6TCozN/Yz7KVo9Mf1JGcQkxZHTFJwe9ImUmrm8O0HWAxI JC9McvdjKNOjNoO9iJUpuoVYfDpMDcCr8BzisyHIDhWcIAN/niFbhKJCJQpL4vqKf0oU 8RHrvAPJpX1h2CWAyIPfNvb+xEw5BQ0TweC2dkU2Nit69Pg8d8WDVBcIRC8LYsp4jgxl by60e1sti7PkZ7ixbsyOG7gP53A/as0ayvn/H84S23SapzoNO8uBtxHWgtotecBK/4oX WCk/wYSAhhjLafl2IEq12uqASDSGv4lE6+M9eAvwE/sJfHacCkHZ7IK0dKyk+D1gxzgN tP7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=Lvkf6PPXMUNJG2m/HKw8hyv0wY3Nh+Y2gVOr0ob5+Xs=; b=btSOuyWJfpnDIRY9wGWVCwd0XTRM93xALW3k9IN87BaLQR1AQwJqwBruYcdk3QEnCl c6fduPdlPZCctZicef3AqLLNadyWogO9B4Dd+2ovvntXQBqc/MO9ZbvFHG3mR6+DGbkV D3npo3DOjawpcgQdhPm8u/hFFwfp00/d+9LcFDXwp7ekke0RT8rOKsvye5H4hF1JKimM Lqu2Ldxd7/BP9rCcSFJX9dAqW03MBdyejOj2KeJxSgBZcz9ecZXarb5vsi8i2IfHNtyL SOIcXo0cyl02tcn644BgSKLrGeLOfGd2SqOsjfeG7q2jvdeT8iB+LMrzoQdicIoFXoL9 QxOg== X-Gm-Message-State: AD7BkJKivoncN1FaKr19iCX1A6snfQZm9podt16QDzmzQv5ALpEtiNRVMoD9t92o06qWg6obzVrepm43cA1lqw== X-Received: by 10.50.137.35 with SMTP id qf3mr22247677igb.92.1457482395732; Tue, 08 Mar 2016 16:13:15 -0800 (PST) In-Reply-To: <56df65a1$0$1596$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104366 On Wed, Mar 9, 2016 at 10:52 AM, Steven D'Aprano wrote: >> Well, running bash on Windows is decidedly non-standard. This is like >> installing a Python package on a Linux system and then complaining >> that it won't run under wine. I don't think that Python should be >> expected to provide an activate script for all possible shells the >> user might conceivably want to use. > > Not "all possible shells", no. But it's not unreasonable for it to handle > the single most popular operating system environment in the world, Windows, > don't you think? I'm not sure that the issue is "Windows can't use venv", but "Windows with Git Bash can't use venv". Windows has a number of shells available; the default one is pretty terrible but does kinda work, and then there's PowerShell, and ports of other shells like bash. Cygwin provides its own shell (which I think is bash), and I'm not sure if that's the same as Git Bash installs. And then there's the difference between the shell (the command interpreter) and the, for want of a better name, terminal emulator (the thing that displays stuff on the screen). Working purely within cmd.exe and the default terminal emulator, I was able to "py -m venv env" and then "env\scripts\activate" (note, *not* env/bin/activate which is what I'm used to - no idea why). It seemed to work. Working instead in Git Bash, though, leaves me unable to activate, because there is no bash script for venv activation. Hence, the problem is "supporting all possible shells" (which is an enormous challenge), rather than "supporting one of the three most popular operating systems" (which, I agree, is well worth doing). ChrisA