From 1c6d57f92b2fc94c6686fab9e1572e99a3920f36 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 1 Apr 2020 12:15:02 +0200 Subject: [PATCH] CMake: Write panda3d/dtoolconfig.py like makepanda does --- panda/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/panda/CMakeLists.txt b/panda/CMakeLists.txt index 9bcb2e61ab..93e9eb3aa1 100644 --- a/panda/CMakeLists.txt +++ b/panda/CMakeLists.txt @@ -129,13 +129,26 @@ To suppress this warning, upgrade to Python 3. ${win32_init}") + set(dtoolconfig_file "'''Alias of :mod:`panda3d.interrogatedb`. + +.. deprecated:: 1.10.0 + This module has been renamed to :mod:`panda3d.interrogatedb`. +''' + +if __debug__: + print(\"Warning: panda3d.dtoolconfig is deprecated, use panda3d.interrogatedb instead.\") +from .interrogatedb import * +") + if(IS_MULTICONFIG) foreach(config ${CMAKE_CONFIGURATION_TYPES}) # Generate an __init__.py in the per-configuration directory. file(WRITE "${PROJECT_BINARY_DIR}/${config}/panda3d/__init__.py" ${init_file}) + file(WRITE "${PROJECT_BINARY_DIR}/${config}/panda3d/dtoolconfig.py" ${dtoolconfig_file}) endforeach(config) else() file(WRITE "${PROJECT_BINARY_DIR}/panda3d/__init__.py" ${init_file}) + file(WRITE "${PROJECT_BINARY_DIR}/panda3d/dtoolconfig.py" ${dtoolconfig_file}) endif() if(HAVE_BULLET)