Show More
@@ -747,19 +747,18 b' class buildhgexe(build_ext):' | |||||
747 |
|
747 | |||
748 | # Also overwrite python3.dll so that hgext.git is usable. |
|
748 | # Also overwrite python3.dll so that hgext.git is usable. | |
749 | # TODO: also handle the MSYS flavor |
|
749 | # TODO: also handle the MSYS flavor | |
750 | if sys.version_info[0] >= 3: |
|
750 | python_x = os.path.join( | |
751 | python_x = os.path.join( |
|
751 | os.path.dirname(os.fsdecode(buf.value)), | |
752 | os.path.dirname(os.fsdecode(buf.value)), |
|
752 | "python3.dll", | |
753 | "python3.dll", |
|
753 | ) | |
|
754 | ||||
|
755 | if os.path.exists(python_x): | |||
|
756 | dest = os.path.join( | |||
|
757 | os.path.dirname(self.hgtarget), | |||
|
758 | os.path.basename(python_x), | |||
754 | ) |
|
759 | ) | |
755 |
|
760 | |||
756 |
|
|
761 | shutil.copy(python_x, dest) | |
757 | dest = os.path.join( |
|
|||
758 | os.path.dirname(self.hgtarget), |
|
|||
759 | os.path.basename(python_x), |
|
|||
760 | ) |
|
|||
761 |
|
||||
762 | shutil.copy(python_x, dest) |
|
|||
763 |
|
762 | |||
764 | if not pythonlib: |
|
763 | if not pythonlib: | |
765 | log.warn( |
|
764 | log.warn( |
General Comments 0
You need to be logged in to leave comments.
Login now