diff -r 06b8097543cd -r 446472de62e9 transforms/autopyc --- a/transforms/autopyc Mon May 19 10:28:03 2014 +0100 +++ b/transforms/autopyc Mon May 19 07:37:20 2014 -0700 @@ -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. default pkg.tmp.autopyc true> - emit file path=%(path)c> + default pkg.tmp.pyversion 2.X> + default pkg.tmp.pyversion 3.%<1>> + + emit file path=%(path)c> + emit hardlink path=%(path)c target=%(target)c> + + emit file path=/usr/lib/python3.%<1>%<2>/__pycache__/%<3>.cpython-3%<1>.pyc> + emit hardlink path=%(path)c target=%(target)c> + delete pkg.tmp.autopyc .*> - emit hardlink path=%(path)c target=%(target)c> + delete pkg.tmp.pyversion .*>