-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Flask-Session & Flask-Caching Updates for Python 3.8 - build scripts
- Loading branch information
Showing
72 changed files
with
24,109 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
set python=c:\Python37\Scripts\pyinstaller.exe | ||
echo Build using pyinstaller : %python% | ||
set targetDir=dist | ||
set fileHandle=mtw-server-win-service | ||
set srcFile=%fileHandle%.py | ||
set srcDir=mtw | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe stop | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
CALL %python% --log-level ERROR --onefile ^ | ||
--hidden-import=_cffi_backend --hidden-import=pkg_resources.py2_warn ^ | ||
--add-data mtw_utils/pyuca/*.txt;pyuca ^ | ||
--distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo - Done! | ||
echo. | ||
echo Cleaning static files %targetDir% ... | ||
|
||
RMDIR %targetDir%\static /S /Q | ||
RMDIR %targetDir%\templates /S /Q | ||
|
||
echo - Done! | ||
echo. | ||
echo Copying files... | ||
|
||
MKDIR %targetDir%\static | ||
xcopy %srcDir%\static %targetDir%\static /E /Q /Y | ||
MKDIR %targetDir%\templates | ||
xcopy %srcDir%\templates %targetDir%\templates /E /Q /Y | ||
echo - Done! | ||
echo. | ||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe install | ||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe start | ||
|
||
echo Finished | ||
echo. | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
set python=c:\Python37\Scripts\pyinstaller.exe | ||
echo Build using pyinstaller : %python% | ||
set targetDir=dist | ||
set fileHandle=mtw-server-win-worker | ||
set srcFile=%fileHandle%.py | ||
set srcDir=mtw | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe stop | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
CALL %python% --log-level ERROR --onefile ^ | ||
--hidden-import=_cffi_backend --hidden-import=pkg_resources.py2_warn ^ | ||
--add-data mtw_utils/pyuca/*.txt;pyuca ^ | ||
--distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo - Done! | ||
|
||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe install | ||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe start | ||
|
||
echo Finished | ||
echo. | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
set python=c:\Python37\Scripts\pyinstaller.exe | ||
echo Build using pyinstaller : %python% | ||
set targetDir=dist | ||
set fileHandle=set-mtw-admin | ||
set srcFile=%fileHandle%.py | ||
set srcDir=mtw | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
CALL %python% --log-level ERROR --onefile ^ | ||
--hidden-import=_cffi_backend --hidden-import=pkg_resources.py2_warn ^ | ||
--distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo. | ||
echo Finished | ||
echo. | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
set python=c:\Programs\Python\Python38\Scripts\pyinstaller.exe | ||
echo Build using pyinstaller : %python% | ||
set targetDir=dist | ||
set fileHandle=set-mtw-admin | ||
set srcFile=%fileHandle%.py | ||
set srcDir=mtw | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
CALL %python% --log-level ERROR --onefile ^ | ||
--hidden-import=_cffi_backend ^ | ||
--distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo. | ||
echo Finished | ||
echo. | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## This is the MTW caching folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## This is the MTW sessions folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## This is the MTW temp folder |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.