Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4313310ybf; Wed, 4 Mar 2020 01:22:30 -0800 (PST) X-Google-Smtp-Source: ADFU+vuxk2NZ6HAdGGIWWQUlewE9pkNtRMdwC8Bvg3p3A/KBqO5AARVSp0usF0qnP0Gh46UG1Fc0 X-Received: by 2002:aca:b608:: with SMTP id g8mr1141321oif.142.1583313750653; Wed, 04 Mar 2020 01:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583313750; cv=none; d=google.com; s=arc-20160816; b=mn4rUtZ6JalPcpuJQXVTvlf0rVaLUEutUr4RtiLvAsQzlwRwdOtA+Cudp/FBHD0W5c YUfQzr3v/RgloZ1pNLsoK+f9Wrn4nhxaCMsvpWrvqTDLd65vbbLM8/TRoT+UGfZY3NeK 0Bqvc/ILR4y2VGeKwmGLqIkQ7NmwmDyh/Au2DhK7C6kBpi3I84Vs7jLJzWd88ts6lFwk 029MWGw7QceTIhjwSbRxY2G5K5+qZk0LPxO4utFFTtw08g4gP+Cfa1dvW100CEUKAARv EVlxf0Cj2hLLIwWKL+MIbz/iUBrCBmvYSeMTYTj2ptjMjHi8BlCIE08RW1KrbNEOHkA3 Tr4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=x8kc0tANWo6C6iZl576D6+T8QxZACEtvu1j7kdtwv3Y=; b=kylnJoagtp5ppK0h+YfQASldIOIzTYRabnsKC+h5JCs7ZY6vBiKX1z0NNF9KW9dSXU nIdV6POWGU14nWzP3kQrrGivgDRPRHmfUScz5G765ZJgOy3dJKnekejYuu9sSXM55T0F 7IflCMxb4/0jhz43ODvy+FC7lxw+gMPjvwSvyv5ReRq+9sb942XBwRSpR931pNEK8U7r 9PCvsLHBZG+HoA+xy4q7ZcgKeh93Zxotn1FGSx4dzSbn29tuacSS8Uv1eKcIeJG129Ka Ku0URLKZmthAuYTNNmVNMePtKOm69i/p+Ar1+E/5s8ZFVaW3bRI2Kfviwa50xSe7jBwB hD5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si897118oig.110.2020.03.04.01.22.18; Wed, 04 Mar 2020 01:22:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729121AbgCDJUk (ORCPT + 99 others); Wed, 4 Mar 2020 04:20:40 -0500 Received: from smtp3-1.goneo.de ([85.220.129.38]:57975 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgCDJUj (ORCPT ); Wed, 4 Mar 2020 04:20:39 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 2CC2423F604; Wed, 4 Mar 2020 10:20:37 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.75 X-Spam-Level: X-Spam-Status: No, score=-2.75 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.150, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EgvGAP8NJ19H; Wed, 4 Mar 2020 10:20:35 +0100 (CET) Received: from [192.168.1.127] (dyndsl-091-096-162-220.ewe-ip-backbone.de [91.96.162.220]) by smtp3.goneo.de (Postfix) with ESMTPSA id 24A4523F935; Wed, 4 Mar 2020 10:20:35 +0100 (CET) Subject: Re: [PATCH] scripts/sphinx-pre-install: add '-p python3' to virtualenv To: Mauro Carvalho Chehab Cc: "Bird, Tim" , Jonathan Corbet , "tbird20d@gmail.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <1582594481-23221-1-git-send-email-tim.bird@sony.com> <20200302130911.05a7e465@lwn.net> <20200304064214.64341a49@onda.lan> <31a69fe7-c08d-9381-a111-5f522a4c9ffd@darmarit.de> <20200304093138.6aced5a0@coco.lan> From: Markus Heiser Message-ID: Date: Wed, 4 Mar 2020 10:20:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200304093138.6aced5a0@coco.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 04.03.20 um 09:31 schrieb Mauro Carvalho Chehab: > Em Wed, 4 Mar 2020 07:20:48 +0100 > Markus Heiser escreveu: >> With py3 the recommended way to install virtual environments is:: >> >> python3 -m venv sphinx-env >> >> This (python3) is what worked for me on RHEL/CentOS (dnf), >> archlinux and debian/ubuntu (tested from 16.04 up to 20.04). > > Hmm... from: > > https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/ > > This works since Python version 3.3. It sounds doable to use it. > > Yet, if we'll be switching to this method, the script should check if > the version is 3.3 or newer. The logic inside get_sphinx_fname() would > also require some changes, as it won't need to install anymore the > virtualenv program for Python >= 3.3. I guess you can ignore 3.2 and downwards https://en.wikipedia.org/wiki/History_of_Python#Table_of_versions Support for py2.7 and >=py3.3 should match nearly all use cases / distributions we support. BTW: starting scripts with: -m Searches sys.path for the named module and runs the corresponding .py file as a script. is mostly more robust. The option exists also in py2. From py3.3 on a subset of virtualenv is built-in, so you can run '-m venv' ot of the box. -- Markus --