Files
2026-10-04 04:07:15 +00:00

27 lines
852 B
Python

--- setup.py.orig 2026-06-29 15:03:22 UTC
+++ setup.py
@@ -401,7 +401,7 @@ class hgbuildext(build_ext):
)
for rustext in ruststandalones:
- rustext.build('' if self.editable_mode else self.build_lib)
+ rustext.build(self.build_lib)
return build_ext.build_extensions(self)
@@ -495,12 +495,8 @@ class hgbuildpy(build_py):
]
)
- if self.editable_mode:
- here = os.path.dirname(__file__)
- basepath = os.path.join(here, 'mercurial')
- else:
- basepath = os.path.join(self.build_lib, 'mercurial')
- self.mkpath(basepath)
+ basepath = os.path.join(self.build_lib, 'mercurial')
+ self.mkpath(basepath)
write_if_changed(os.path.join(basepath, '__modulepolicy__.py'), content)