From: Mark H Weaver <mhw@netris.org>
To: Dylan Jeffers <sapientech@openmailbox.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] gnu: Add python-kivy
Date: Sat, 13 Aug 2016 05:27:59 -0400 [thread overview]
Message-ID: <87vaz5qaqo.fsf@netris.org> (raw)
In-Reply-To: <20160812174316.538c463b@openmailbox.org> (Dylan Jeffers's message of "Fri, 12 Aug 2016 17:43:16 -0700")
Dylan Jeffers <sapientech@openmailbox.org> writes:
> Mark H Weaver <mhw@netris.org> wrote:
>> We generally prefer to use tarball releases, unless there is a
>> compelling reason to use a non-release commit.
>>
>> Is there a compelling reason? If not, please use the 1.9.1 release
>> tarball from <https://github.com/kivy/kivy/archive/1.9.1.tar.gz>,
>> along with the 'file-name' field.
>
> Yes, the new dev version of kivy has a number of important enhancements
> that are not available in 1.9.1.
Can you be more specific? Other popular distros, including Debian sid,
Ubuntu yakkety, Arch, and Gentoo, are all using version 1.9.1. Kivy's
own PPA for "stable builds" uses a version from February, not long after
the 1.9.1 release.
Unless there are specific and compelling reasons why the latest release
is inadequate for most users, I'd be inclined to use the release
version, at least by default for the package named "python-kivy".
However, we could also add a "python-kivy-next" package for those who
want the latest and greatest from the upstream git repository. We've
done that for some other packages, such as "guile-next" and
"geiser-next".
Would this work for you?
If we did this, the best way would be for the "python-kivy-next" package
to inherit from "python-kivy", but overridding the 'source' field, so it
would look something like this (untested):
--8<---------------cut here---------------start------------->8---
(define-public python-kivy
(package
(name "python-kivy")
(version "1.9.1")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/kivy/kivy/archive/"
version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19"))))
...))
(define-public python2-kivy
(package-with-python2 python-kivy))
(define-public python-kivy-next
(let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe")
(revision "1"))
(package (inherit python-kivy)
(name "python-kivy-next")
(version (string-append "1.9.1-" revision "."
(string-take commit 7)))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/kivy/kivy")
(commit commit)))
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32
"0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))))))
(define-public python2-kivy-next
(package-with-python2 python-kivy-next))
--8<---------------cut here---------------end--------------->8---
The code above also takes into account some other issues which I explain
below.
> Also I believe I modified my email client (claws) to use UTF-8.
> Let me know if it is working for you.
The inline text of your email now specifies UTF-8 encoding (via a
"Content-Type: text/plain; charset=UTF-8" header), but the attachment
lacks the "charset=UTF-8" part of that header, so it's still not
working. Anyway, I can fix it up by hand for now.
> +(define-public python-kivy
> + (let ((commit
> + "a988c5e7a47da56263ff39514264a3de516ef2fe"))
> + (package
> + (name "python-kivy")
> + (version "1.9.1-dev")
Please see section 7.6.3 (Version Numbers) in the Guix manual,
specifically our conventions about version numbers for VCS snapshots,
and the recommended code structure to generate them. I've done this in
my suggested definition of "python-kivy-next" above.
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/kivy/kivy")
> + (commit commit)))
> + (file-name (string-append name "-" version ".tar.gz"))
This 'file-name' field above is appropriate for a gzipped tarball
release, but not for a git checkout, because a git checkout becomes a
directory in the store. So, for a git checkout, it should be something
like this:
(file-name (string-append name "-" version "-checkout"))
Can you send an updated patch? Thanks for bearing with me. I think
we're getting close :)
Thanks,
Mark
next prev parent reply other threads:[~2016-08-13 9:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-12 0:41 [PATCH 2/2] python-kivy Dylan Jeffers
2016-08-12 6:06 ` Mark H Weaver
2016-08-13 0:21 ` Dylan Jeffers
2016-08-13 0:43 ` [PATCH 2/2] gnu: Add python-kivy Dylan Jeffers
2016-08-13 9:27 ` Mark H Weaver [this message]
2016-08-13 20:28 ` Dylan Jeffers
2016-08-13 20:37 ` Dylan Jeffers
2016-08-15 4:04 ` Dylan Jeffers
2016-08-17 6:23 ` Mark H Weaver
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=87vaz5qaqo.fsf@netris.org \
--to=mhw@netris.org \
--cc=guix-devel@gnu.org \
--cc=sapientech@openmailbox.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).