From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Python2-only packages (shedskin) Date: Tue, 29 Mar 2016 22:24:08 +0200 Message-ID: <20160329222408.70a70ae2@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al0BU-00074L-UK for guix-devel@gnu.org; Tue, 29 Mar 2016 16:24:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1al0BS-00019N-8I for guix-devel@gnu.org; Tue, 29 Mar 2016 16:24:16 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:41092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al0BS-00019D-2O for guix-devel@gnu.org; Tue, 29 Mar 2016 16:24:14 -0400 Received: from localhost (91.141.2.33.wireless.dyn.drei.com [91.141.2.33]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 0502D1CA12D0 for ; Tue, 29 Mar 2016 22:24:10 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org 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))))))