##// END OF EJS Templates
setup: copy python3.dll next to hg.exe when building on Windows for hgext.git...
Matt Harbison -
r47628:ed286d15 default
parent child Browse files
Show More
@@ -817,6 +817,22 b' class buildhgexe(build_ext):'
817 if not os.path.exists(dest):
817 if not os.path.exists(dest):
818 shutil.copy(buf.value, dest)
818 shutil.copy(buf.value, dest)
819
819
820 # Also overwrite python3.dll so that hgext.git is usable.
821 # TODO: also handle the MSYS flavor
822 if sys.version_info[0] >= 3:
823 python_x = os.path.join(
824 os.path.dirname(fsdecode(buf.value)),
825 "python3.dll",
826 )
827
828 if os.path.exists(python_x):
829 dest = os.path.join(
830 os.path.dirname(self.hgtarget),
831 os.path.basename(python_x),
832 )
833
834 shutil.copy(python_x, dest)
835
820 if not pythonlib:
836 if not pythonlib:
821 log.warn(
837 log.warn(
822 'could not determine Python DLL filename; assuming pythonXY'
838 'could not determine Python DLL filename; assuming pythonXY'
General Comments 0
You need to be logged in to leave comments. Login now