public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Michael Wild <themiwi@gmail.com>
To: cygwin-apps@cygwin.com
Subject: Re: How to package a Python script
Date: Thu, 26 Jul 2018 13:13:00 -0000	[thread overview]
Message-ID: <CAALQ5rkRCsG1GFRwkDX8-2iZKoGt5uzB+9V7=zd0Jmn8XXHQiA@mail.gmail.com> (raw)
In-Reply-To: <b61345a937ce36263201b6985c07d07998740ccb.camel@redhat.com>

Ok, thanks! That clears things up for me.

On Wed, Jul 25, 2018 at 7:59 PM Yaakov Selkowitz <yselkowi@redhat.com>
wrote:

> On Wed, 2018-07-25 at 16:55 +0200, Michael Wild wrote:
> > 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...
>
> Depends on the package.  Most python-based scripts also include
> modules, and sometimes those modules are generally usable and the
> script is just a convenient entrypoint thereto (in which case it should
> be named 'python-foo', *2 and *3 should be made via python-
> wheel.cygclass, and the script packaged with *3), and sometimes they
> serve only themselves (in which case it should be named 'foo' and
> packaged with the appropriate choice of python{2,3}-
> {distutils,wheel}.cygclass).
>
> --
> Yaakov Selkowitz
> Software Engineer - Platform Enablement Group
> Red Hat, Inc.
>
>
>

      reply	other threads:[~2018-07-26 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25 14:56 Michael Wild
2018-07-25 17:59 ` Yaakov Selkowitz
2018-07-26 13:13   ` Michael Wild [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAALQ5rkRCsG1GFRwkDX8-2iZKoGt5uzB+9V7=zd0Jmn8XXHQiA@mail.gmail.com' \
    --to=themiwi@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).