##// END OF EJS Templates
setup: make sure Rust build its extension for the right python...
setup: make sure Rust build its extension for the right python Strictly speaking, only "PYTHON_SYS_EXECUTABLE" seems to be necessary, but I don't want to take a chances, as in testing "PYTHON" also had an effect.

File last commit:

r52756:f4733654 default
r53139:124c944b stable
Show More
__main__.py
15 lines | 252 B | text/x-python | PythonLexer
Matt Harbison
typing: add `from __future__ import annotations` to most files...
r52756 from __future__ import annotations
Jason R. Coombs
library: incorporate demandimport into runpy invocation
r51590 def run():
from . import demandimport
with demandimport.tracing.log('hg script'):
demandimport.enable()
from . import dispatch
dispatch.run()
Jason R. Coombs
library: enable runpy invocation on mercurial package
r51589 if __name__ == '__main__':
Jason R. Coombs
library: incorporate demandimport into runpy invocation
r51590 run()