realhome = os.path.join(sys.prefix, 'lib', 'python' + sys.version[:3])
+ # The site.py file needs to be a two locations
+ # 1) in lib/pythonX.Y, to be found during normal startup and
+ # by the 'python' executable
+ # 2) in the resources directory next to the script for
+ # semistandalone builds (the lib/pythonX.Y directory is too
+ # late on sys.path to be found in that case).
self.symlink('../../site.pyo', os.path.join(pydir, 'site.pyo'))