Overview
Comment: | [build][server] require Python 3.7+ |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | build | server |
Files: | files | file ages | folders |
SHA3-256: |
53080c61667951f03a30b174b78b6b15 |
User & Date: | olr on 2020-03-30 13:47:04 |
Other Links: | manifest | tags |
Context
2020-03-31
| ||
07:42 | [fr] faux positif et ajustements check-in: b4883f6fda user: olr tags: trunk, fr | |
2020-03-30
| ||
13:47 | [build][server] require Python 3.7+ check-in: 53080c6166 user: olr tags: trunk, build, server | |
12:41 | [misc] SublimeText syntax update check-in: 6c08bf85cd user: olr tags: trunk, misc | |
Changes
Modified grammalecte-server.py from [2560b5c98b] to [480fbbc03c].
︙ | ︙ | |||
316 317 318 319 320 321 322 323 324 325 326 327 328 329 | TESTPAGE = True HOMEPAGE = HOMEPAGE.replace("{SERVER_PORT}", str(nPort)) if dOptions: oGCE.setOptions(dOptions) # Python version print("Python: " + sys.version) # Grammalecte echo("Grammalecte v{}".format(oGCE.version)) oGCE.displayOptions() # Process Pool Executor initExecutor(nMultiCPU) # Server (Bottle) run(app, host=sHost, port=nPort) | > > > | 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | TESTPAGE = True HOMEPAGE = HOMEPAGE.replace("{SERVER_PORT}", str(nPort)) if dOptions: oGCE.setOptions(dOptions) # Python version print("Python: " + sys.version) if sys.version < "3.7": print("Python 3.7+ required") return # Grammalecte echo("Grammalecte v{}".format(oGCE.version)) oGCE.displayOptions() # Process Pool Executor initExecutor(nMultiCPU) # Server (Bottle) run(app, host=sHost, port=nPort) |
︙ | ︙ |
Modified make.py from [2303ebeb95] to [88a0d18ea6].
︙ | ︙ | |||
366 367 368 369 370 371 372 373 374 375 376 377 378 379 | sDescription = dVars['dic_personal_description'] lex_build.build(spfLexSrc, dVars['lang'], dVars['lang_name'], sfDictDst, bJavaScript, sDicName, sDescription, "", dVars['stemming_method'], int(dVars['fsa_method'])) def main (): "build Grammalecte with requested options" print("Python: " + sys.version) xParser = argparse.ArgumentParser() xParser.add_argument("lang", type=str, nargs='+', help="lang project to generate (name of folder in /lang)") xParser.add_argument("-uc", "--use_cache", help="use data cache instead of rebuilding rules", action="store_true") xParser.add_argument("-b", "--build_data", help="launch build_data.py (part 1 and 2)", action="store_true") xParser.add_argument("-bb", "--build_data_before", help="launch build_data.py (only part 1: before dictionary building)", action="store_true") xParser.add_argument("-ba", "--build_data_after", help="launch build_data.py (only part 2: before dictionary building)", action="store_true") xParser.add_argument("-d", "--dict", help="generate FSA dictionary", action="store_true") | > > > | 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | sDescription = dVars['dic_personal_description'] lex_build.build(spfLexSrc, dVars['lang'], dVars['lang_name'], sfDictDst, bJavaScript, sDicName, sDescription, "", dVars['stemming_method'], int(dVars['fsa_method'])) def main (): "build Grammalecte with requested options" print("Python: " + sys.version) if sys.version < "3.7": print("Python 3.7+ required") return xParser = argparse.ArgumentParser() xParser.add_argument("lang", type=str, nargs='+', help="lang project to generate (name of folder in /lang)") xParser.add_argument("-uc", "--use_cache", help="use data cache instead of rebuilding rules", action="store_true") xParser.add_argument("-b", "--build_data", help="launch build_data.py (part 1 and 2)", action="store_true") xParser.add_argument("-bb", "--build_data_before", help="launch build_data.py (only part 1: before dictionary building)", action="store_true") xParser.add_argument("-ba", "--build_data_after", help="launch build_data.py (only part 2: before dictionary building)", action="store_true") xParser.add_argument("-d", "--dict", help="generate FSA dictionary", action="store_true") |
︙ | ︙ |