diff options
Diffstat (limited to 'scripts/contrib/python/generate-manifest-3.5.py')
-rwxr-xr-x | scripts/contrib/python/generate-manifest-3.5.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/contrib/python/generate-manifest-3.5.py b/scripts/contrib/python/generate-manifest-3.5.py index 2906cc66d0..897768fbaa 100755 --- a/scripts/contrib/python/generate-manifest-3.5.py +++ b/scripts/contrib/python/generate-manifest-3.5.py | |||
@@ -59,10 +59,20 @@ class MakefileMaker: | |||
59 | for filename in filenames: | 59 | for filename in filenames: |
60 | if filename[0] != "$": | 60 | if filename[0] != "$": |
61 | fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) ) | 61 | fullFilenames.append( "%s%s" % ( self.targetPrefix, filename ) ) |
62 | fullFilenames.append( "%s%s" % ( self.targetPrefix, | ||
63 | self.pycachePath( filename ) ) ) | ||
62 | else: | 64 | else: |
63 | fullFilenames.append( filename ) | 65 | fullFilenames.append( filename ) |
64 | self.packages[name] = description, dependencies, fullFilenames | 66 | self.packages[name] = description, dependencies, fullFilenames |
65 | 67 | ||
68 | def pycachePath( self, filename ): | ||
69 | dirname = os.path.dirname( filename ) | ||
70 | basename = os.path.basename( filename ) | ||
71 | if '.' in basename: | ||
72 | return os.path.join( dirname, '__pycache__', basename ) | ||
73 | else: | ||
74 | return os.path.join( dirname, basename, '__pycache__' ) | ||
75 | |||
66 | def doBody( self ): | 76 | def doBody( self ): |
67 | """generate body of Makefile""" | 77 | """generate body of Makefile""" |
68 | 78 | ||