Show More
@@ -817,6 +817,22 b' class buildhgexe(build_ext):' | |||
|
817 | 817 | if not os.path.exists(dest): |
|
818 | 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 | 836 | if not pythonlib: |
|
821 | 837 | log.warn( |
|
822 | 838 | 'could not determine Python DLL filename; assuming pythonXY' |
General Comments 0
You need to be logged in to leave comments.
Login now