--- py-compile.orig	2005-02-03 03:22:53.000000000 +0300
+++ py-compile	2014-12-03 19:39:49.000000000 +0300
@@ -72,7 +72,7 @@
 	continue
     print file,
     sys.stdout.flush()
-    py_compile.compile(path)
+    py_compile.compile(path, path + 'c', os.path.join('/', os.path.relpath(path, os.environ['DESTDIR'])))
 print" || exit $?
 
 # this will fail for python < 1.5, but that doesn't matter ...
@@ -87,6 +87,6 @@
 	continue
     print file,
     sys.stdout.flush()
-    py_compile.compile(path)
+    py_compile.compile(path, path + 'o', os.path.join('/', os.path.relpath(path, os.environ['DESTDIR'])))
 print" 2>/dev/null || :
 
