delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/30/13:57:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=kdPQq4y7itL81Q3m
2Ws6LESYnXOTF9/G+gQoOWCKZvCQzGEmzJerGvA+3k7GCWOM3uh8q7sRhdmKqLIT
UolgHe6HW3wCf0PMQwkn/IEMwGb3JMb08pE/aXIjrS0SknnW76yK3A/o18NsBUkc
1ZuHC7ZUhlRMpScIUNPRwvq87PA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=gqo9fJls1rIScYwlUx/ffe
eXGQY=; b=Y6Dpn8co9BYFvIet05iyJ8zc+1U3uMfgBiLVHKzfwFfM89D/bHEVXI
sFDELH1ALYe7XYx/46RG+/jan+mrm+1Y+hX/1QxO8DsvGNseKC7mNUfoQspFZkwP
LZpI7SoMF4Ff9F4KLSP8a+cPlLAYnyEQtzpEcjqcI2QnjmPLflMJ0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=fort, Fort, pay, Packaging
X-HELO: limerock04.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: python2-docutils (0.13.1-2 version) missing scripts
To: cygwin AT cygwin DOT com
References: <CA+fGtfA4+rrt21xtVaGwmmVtBowdDRcmxrA-5S7DRQZc0x9p+w AT mail DOT gmail DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <1156c4a6-4ffa-b55d-9844-9f17a16d37df@cornell.edu>
Date: Sun, 30 Jul 2017 13:56:51 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <CA+fGtfA4+rrt21xtVaGwmmVtBowdDRcmxrA-5S7DRQZc0x9p+w@mail.gmail.com>
X-PMX-Cornell-Gauge: Gauge=X
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 7/28/2017 7:55 PM, Daniel Fort wrote:
> Seems like a pay Peter to pay Paul situation. I was hesitant to use
> python3-docutils but it turns out that it doesn't force you into
> python3. Why not just do a python-docutils package to avoid confusion?
> Aren't they just scripts that can run under either version of python?

The scripts from python3-docutils have a shebang line that specifies 
python3.  If you invoke them by name (as opposed to 'python <script 
name>'), they will be run by python3.  It would be possible to package 
both versions by including the python version as part of the name, as is 
done with easy_install-2.7 and easy_install-3.6, for a good reason.  But 
I'm not aware of any such good reason to go to that trouble for the 
docutils scripts.

See 
https://fedoraproject.org/wiki/Packaging:Python#Avoiding_collisions_between_the_python_2_and_python_3_stacks 
for a detailed discussion of how this issue is handled by Fedora.  In 
particular:

"If the executables provide the same functionality independent of 
whether they are run on top of Python 2 or Python 3, then only the 
Python 3 version of the executable should be packaged.  Transitioning 
from python2 to python3 is left to individual package maintainers...."

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019