diff -r 68aef260e079 -r 35735ffdda43 transforms/autopyc --- a/transforms/autopyc Thu Feb 12 10:14:29 2015 -0800 +++ b/transforms/autopyc Fri Feb 06 16:51:20 2015 -0800 @@ -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 .*>