mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
makepanda: show warning when attempting to build with Python 2.7
See #602
This commit is contained in:
parent
1a9867ae2e
commit
fa43591f7a
@ -591,6 +591,17 @@ if RUNTIME and not HOST_URL:
|
|||||||
# Set this to a nice default.
|
# Set this to a nice default.
|
||||||
HOST_URL = "https://runtime.panda3d.org/"
|
HOST_URL = "https://runtime.panda3d.org/"
|
||||||
|
|
||||||
|
if not PkgSkip("PYTHON") and SDK["PYTHONVERSION"] == "python2.7":
|
||||||
|
warn_prefix = "%sWARNING:%s " % (GetColor("red"), GetColor())
|
||||||
|
print("=========================================================================")
|
||||||
|
print(warn_prefix + "Python 2.7 will reach EOL after December 31, 2019, and will not")
|
||||||
|
print(warn_prefix + "be supported after that date. Please ensure you are prepared")
|
||||||
|
print(warn_prefix + "by planning your upgrade to Python 3 now.")
|
||||||
|
print("=========================================================================")
|
||||||
|
sys.stdout.flush()
|
||||||
|
# Give the user some time to contemplate their sins
|
||||||
|
time.sleep(6.0)
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
##
|
##
|
||||||
## Choose a Compiler.
|
## Choose a Compiler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user