unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH v2] gnu: Add python2-shedskin.
Date: Wed, 6 Apr 2016 18:19:09 -0400	[thread overview]
Message-ID: <20160406221909.GB8974@jasmine> (raw)
In-Reply-To: <20160330072659.794e2d16@scratchpost.org>

On Wed, Mar 30, 2016 at 07:26:59AM +0200, Danny Milosavljevic wrote:
> Patch that does the latter. Is that OK?

If it works, then I think it's better than propagating pcre and libgc.

> * gnu/packages/python.scm (python2-shedskin): New variable.

> +      (uri (string-append "https://github.com/shedskin/shedskin/releases/download/v" version "/shedskin-0.9.4.tgz"))

Please use 'version' in place of 0.9.4 in the URL.

> +  (arguments `(#:python ,python-2

The home page says that it works with python 2.4 – 2.6. Is that a
problem? We don't package any versions within that range.

> +               #:phases (modify-phases %standard-phases
> +         (add-after 'unpack 'fix-resulting-include-libs
> +          (lambda* (#:key inputs #:allow-other-keys)
> +            (let ((libgc (assoc-ref inputs "libgc"))
> +                  (pcre (assoc-ref inputs "pcre")))
> +              (substitute* "shedskin/makefile.py"
> +                (("variable == 'CCFLAGS':")
> +                 (string-append "variable == 'CCFLAGS':\n            line += ' -I " pcre "/include -I " libgc "/include'"))
> +                (("variable == 'LFLAGS':")
> +                 (string-append "variable == 'LFLAGS':\n            line += ' -L" pcre "/lib -L " libgc "/lib'")))
> +              #t))))))

Overall, the indentation of 'arguments' is inconsistent. Can you try to
clean it up? If not, I can do it when committing your revised patch.

> +  (native-inputs `(("python2-setuptools" ,python2-setuptools)))
> +  (inputs `(("pcre" ,pcre)
> +            ("libgc" ,libgc)))
> +  (home-page "https://shedskin.github.io/")
> +  (synopsis "Python Native Compiler")

The word 'native' doesn't appear on the home-page or in any relevant
part of the code base. How about "Experimental Python-2 to C++
compiler". You know more about this program than me, but that seems
reasonable based on the software's documentation and web site.

> +  (description "This is a native compiler for a subset of Python.  It generates C++ code and a Makefile.")

As with the synopsis...

> +  (license (list gpl3 bsd-3 expat))))

Is the 'examples' directory included in the package when installed?
If so, those files have some more licenses that should be listed.

Can you send a revised patch, making sure to satisfy `./pre-inst-env guix
lint shedskin` before sending?

  reply	other threads:[~2016-04-06 22:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 22:27 [PATCH] gnu: Add python2-shedskin Danny Milosavljevic
2016-03-29 22:49 ` Danny Milosavljevic
2016-03-30  5:26   ` [PATCH v2] " Danny Milosavljevic
2016-04-06 22:19     ` Leo Famulari [this message]
2016-04-07 12:13       ` [PATCH v3] " Danny Milosavljevic
2016-04-07 12:28         ` [PATCH v4] " Danny Milosavljevic
2016-04-07 15:16         ` [PATCH v3] " Leo Famulari
2016-04-25  2:04           ` Danny Milosavljevic
2016-05-01 17:52             ` Leo Famulari

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20160406221909.GB8974@jasmine \
    --to=leo@famulari.name \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).