[Updated] D12276: setup: inline now-constant list
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Mar 2 16:28:12 UTC 2022
Closed by commit rHG535df2ccb862: setup: inline now-constant list (authored by durin42).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12276?vs=32367&id=32384
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12276/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12276
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -773,14 +773,10 @@
f.write(b'/* this file is autogenerated by setup.py */\n')
f.write(b'#define HGPYTHONLIB "%s"\n' % pythonlib)
- macros = None
- if sys.version_info[0] >= 3:
- macros = [('_UNICODE', None), ('UNICODE', None)]
-
objects = self.compiler.compile(
['mercurial/exewrapper.c'],
output_dir=self.build_temp,
- macros=macros,
+ macros=[('_UNICODE', None), ('UNICODE', None)],
)
self.compiler.link_executable(
objects, self.hgtarget, libraries=[], output_dir=self.build_temp
To: durin42, indygreg, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220302/3c8ccae9/attachment-0002.html>
More information about the Mercurial-patches
mailing list