* Python2-only packages (shedskin)
@ 2016-03-29 20:24 Danny Milosavljevic
2016-03-29 20:57 ` Leo Famulari
0 siblings, 1 reply; 2+ messages in thread
From: Danny Milosavljevic @ 2016-03-29 20:24 UTC (permalink / raw)
To: guix-devel
Hi,
I'm trying to package shedskin, a Python 2 native (to C++) compiler.
It only supports python2 in upstream.
If I package it the usual way (like other Python packages in Guix), python2-shedskin works fine, however, python-shedskin won't and basically shouldn't be there.
How to best proceed?
What I have:
(define-public python-shedskin
(package
(name "python-shedskin")
(version "0.9.4")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/shedskin/shedskin/releases/download/v" version "/shedskin-0.9.4.tgz"))
(sha256
(base32
"0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
(build-system python-build-system)
(inputs `(("python-setuptools" ,python-setuptools)
("libgc" ,libgc)))
(propagated-inputs `(("pcre" ,pcre)))
(home-page "https://shedskin.github.io/")
(synopsis "Python Native Compiler")
(description "This is a native compiler for a subset of Python.")
(license (list gpl3 bsd-3 expat))
))
(define-public python2-shedskin
(let ((shedskin (package-with-python2
(strip-python2-variant python-shedskin))))
(package (inherit shedskin)
(native-inputs `(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs shedskin))))))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Python2-only packages (shedskin)
2016-03-29 20:24 Python2-only packages (shedskin) Danny Milosavljevic
@ 2016-03-29 20:57 ` Leo Famulari
0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2016-03-29 20:57 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Tue, Mar 29, 2016 at 10:24:08PM +0200, Danny Milosavljevic wrote:
> Hi,
>
> I'm trying to package shedskin, a Python 2 native (to C++) compiler.
>
> It only supports python2 in upstream.
>
> If I package it the usual way (like other Python packages in Guix), python2-shedskin works fine, however, python-shedskin won't and basically shouldn't be there.
>
> How to best proceed?
In the arguments section, you will need to use '#:python ,python-2'. See
the package definition of letsencrypt for an example.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-29 20:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 20:24 Python2-only packages (shedskin) Danny Milosavljevic
2016-03-29 20:57 ` Leo Famulari
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).