From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62213 invoked by alias); 25 Jul 2018 14:56:23 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 60678 invoked by uid 89); 25 Jul 2018 14:56:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:641, dear X-HELO: mail-qk0-f176.google.com Received: from mail-qk0-f176.google.com (HELO mail-qk0-f176.google.com) (209.85.220.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Jul 2018 14:56:21 +0000 Received: by mail-qk0-f176.google.com with SMTP id u21-v6so5075267qku.2 for ; Wed, 25 Jul 2018 07:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=o+Z5S38ROrKIQiY3fIVLHjKdul+I9Fw79m6MUw0l6Xw=; b=GZ3bUWLKFZtXko61W26XkiOCilZ6sUshcnbQY/upNEJ3TPT9UgqGZ+0HDi2I4fuKOB fTAPuckfY9zYiXMdGlC3yESmvN5CH4CJS8/njYd1gBgGGhauMalWppMUJ0XuTx2VNZhM YEZ0mNrWPlCrv9Wpes6PdE2o6jgh9YJNFDmPbA9argoW8B15E8ChvxeR+GlX9YlmYVmK I/KOFIo2Au1HNr566ZRmoUFxgQk8EGCOyQdS3QCsd9ks/E9Z65R6+8HieeGFWt/RSC29 icsPQvilpUHXAmlqcrrCTlLdpLJyChufC/qufYgzf3bYgZbM5K5MVfcYuPz/HJAj7EUf bOFQ== MIME-Version: 1.0 Received: by 2002:ac8:36e3:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 07:55:59 -0700 (PDT) From: Michael Wild Date: Wed, 25 Jul 2018 14:56:00 -0000 Message-ID: Subject: How to package a Python script To: cygwin-apps@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-07/txt/msg00101.txt.bz2 Dear all How should I go about packaging a Python executable? Separate packages for python2 and python3? Only one of them? If so, which? If for both, is there any advice how to achieve this? I don't think that the python-wheel.cygclass deals with scripts in /usr/bin/ as the docs say that scripts should be added to PKG_CONTENTS by the maintainer. How would I go about making sure that I get a *2 and *3 version, also possibly with a symlink from * to *2? Is there a cannonical example I can look into? My casual trawling through my own Cygwin installation didn't turn up anything useful... Cheers Michael