--- install.py.orig 2014-02-01 22:34:52.000000000 +0200 +++ install.py 2014-02-05 21:46:42.248302471 +0200 @@ -224,15 +224,10 @@ pythonBuildDir = os.path.join(buildRoot, pythonPrefixDir[1:]) if os.path.isdir('source'): - compileall.compile_dir('source', - ddir=os.path.join(prefixDir, 'source')) print('Installing files...') print(' Copying python files to {0}'.format(pythonBuildDir)) removeDir(pythonBuildDir) # remove old? copyDir('source', pythonBuildDir) - if os.path.isdir('source/__pycache__'): - copyDir('source/__pycache__', - os.path.join(pythonBuildDir, '__pycache__')) if os.path.isdir('source/plugins'): pluginBuildDir = os.path.join(pythonBuildDir, 'plugins') print(' Creating plugins directory if necessary') @@ -284,6 +279,8 @@ 'iconPath = None', 'iconPath = \'{0}\' # modified by install script\n' .format(iconPrefixDir)) + if os.path.isdir(pythonBuildDir): + compileall.compile_dir(pythonBuildDir, ddir=prefixDir) if os.path.isdir('source'): createWrapper(pythonPrefixDir, progName)