-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #650 from Hoikas/py3
Update to use Python 3.8.
- Loading branch information
Showing
350 changed files
with
2,073 additions
and
80,283 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
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,55 @@ | ||
add_custom_target(Scripts ALL | ||
COMMENT "Copying engine scripts..." | ||
|
||
# Copy core engine files | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/dat" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dat" | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/Python" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/python" | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/SDL" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SDL" | ||
) | ||
|
||
# These Python stdlib modules should be EXCLUDED from the copy due to either practical or | ||
# security concerns. | ||
set(Scripts_BLACKLIST | ||
^__pycache__ | ||
^asyncio | ||
^ctypes | ||
^curses | ||
^distutils | ||
^dist-packages | ||
^ensurepip | ||
^http | ||
# contains a module-level SystemExit | ||
^idlelib | ||
^lib2to3 | ||
^msilib | ||
# Windows turd | ||
^site-packages | ||
^test | ||
^tkinter | ||
^turtledemo | ||
^unittest | ||
^urllib | ||
^venv | ||
^wsgiref | ||
# annoying browser popup POS | ||
^antigravity.py$ | ||
^asynchat.py$ | ||
^asyncore.py$ | ||
^socket.py$ | ||
^socketserver.py$ | ||
) | ||
|
||
# Hunt down all applicable stdlib modules and copy them over. | ||
file(GLOB_RECURSE Scripts_SYSTEM LIST_DIRECTORIES false RELATIVE "${Python3_STDARCH}" "${Python3_STDARCH}/*.py") | ||
foreach(i ${Scripts_BLACKLIST}) | ||
list(FILTER Scripts_SYSTEM EXCLUDE REGEX ${i}) | ||
endforeach() | ||
|
||
add_custom_target(ScriptsSystem | ||
COMMENT "Copying system scripts...") | ||
foreach(i ${Scripts_SYSTEM}) | ||
add_custom_command(TARGET ScriptsSystem POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy "${Python3_STDARCH}/${i}" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Python/system/${i}" | ||
) | ||
endforeach() |
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
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
Oops, something went wrong.