From 5b32294b234fc458d5c2b191b507ab602273e72a Mon Sep 17 00:00:00 2001 From: Alexander Pyhalov <apyhalov@gmail.com> Date: Tue, 03 Jun 2014 14:05:20 +0200 Subject: [PATCH] Add Python 3.4 from userland-gate --- transforms/autopyc | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/transforms/autopyc b/transforms/autopyc index 6c9cea7..2f72c03 100644 --- a/transforms/autopyc +++ b/transforms/autopyc @@ -18,12 +18,20 @@ # # CDDL HEADER END # -# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. # # Don't bother specifying each .pyc file. Allow individual actions to # override this by setting pkg.tmp.autopyc to false. <transform file path=.*\.py$ -> default pkg.tmp.autopyc true> -<transform file pkg.tmp.autopyc=true -> emit file path=%(path)c> +<transform file hardlink pkg.tmp.autopyc=true path=usr/lib/python2\.(.*)\.py$ -> default pkg.tmp.pyversion 2.X> +<transform file hardlink pkg.tmp.autopyc=true path=usr/lib/python3\.(.*)/.*\.py$ -> default pkg.tmp.pyversion 3.%<1>> + +<transform file pkg.tmp.pyversion=2\.X -> emit file path=%(path)c> +<transform hardlink pkg.tmp.pyversion=2\.X -> emit hardlink path=%(path)c target=%(target)c> + +<transform file pkg.tmp.pyversion=3\.([0-9])(.*) path=.*/(.*)\.py$ -> emit file path=/usr/lib/python3.%<1>%<2>/__pycache__/%<3>.cpython-3%<1>.pyc> +<transform hardlink pkg.tmp.pyversion=3\.(.*) -> emit hardlink path=%(path)c target=%(target)c> + <transform file pkg.tmp.autopyc=.* -> delete pkg.tmp.autopyc .*> -<transform hardlink path=.*\.py$ -> emit hardlink path=%(path)c target=%(target)c> +<transform pkg.tmp.pyversion=.* -> delete pkg.tmp.pyversion .*> -- Gitblit v1.9.3