--- virtualenv.py.old 2008-06-14 20:00:59.317452800 +0200 +++ virtualenv.py 2008-06-14 20:33:08.471513600 +0200 @@ -500,6 +500,24 @@ os.path.dirname(py_executable), 'python') logger.notify('New python executable in %s', py_executable) + + + # ugly code for running inside cygwin :) + if sys.platform == 'cygwin': + # this borked os does not like copyfile + def lcopy(src, dst): + os.system('cp -fv %s %s'%(src, dst)) + shutil.copyfile = lcopy + sys.executable+='.exe' + py_executable+='.exe' + sys_dir = os.path.dirname(sys.executable) + for filep in os.listdir(sys_dir): + if filep.startswith('libpython'): + # needs the python dll to run + dll_src = os.path.join(sys_dir, filep) + dll_dst = os.path.join(bin_dir, filep) + shutil.copyfile(dll_src, dll_dst) + if sys.executable != py_executable: ## FIXME: could I just hard link? shutil.copyfile(sys.executable, py_executable)