From da8055918e3e2937cff88a77dce4f55e3bae8896 Mon Sep 17 00:00:00 2001 From: nutti Date: Sun, 19 Nov 2023 13:53:45 +0900 Subject: [PATCH] Update: Documents --- tools/pip_package/build_pip_package.sh | 2 +- tools/pip_package/setup_blender.py | 4 ++-- tools/pip_package/setup_upbge.py | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/pip_package/build_pip_package.sh b/tools/pip_package/build_pip_package.sh index b6b6aad89..a7cca020a 100755 --- a/tools/pip_package/build_pip_package.sh +++ b/tools/pip_package/build_pip_package.sh @@ -193,7 +193,7 @@ if [ "${deploy_stage}" = "release" ]; then # Create non-versioned package for latest release if [ "${target_version}" = "latest" ]; then - export NON_VERSION_PACKAGE=1 + export NON_VERSION_PACKAGE="true" ${python_bin} setup.py sdist ${python_bin} setup.py bdist_wheel unset ${NON_VERSION_PACKAGE} diff --git a/tools/pip_package/setup_blender.py b/tools/pip_package/setup_blender.py index 2c369faf4..66486379a 100644 --- a/tools/pip_package/setup_blender.py +++ b/tools/pip_package/setup_blender.py @@ -8,8 +8,8 @@ blender_version = cur_dir.split('/')[-1].split('-')[-1] module_name = f"fake-bpy-module-{blender_version}" if "NON_VERSION_PACKAGE" in os.environ: - if os.environ["NON_VERSION_PACKAGE"] == "1": - module_name = f"fake-bpy-module" + if os.environ["NON_VERSION_PACKAGE"] == "true": + module_name = "fake-bpy-module" # release version if "RELEASE_VERSION" in os.environ: diff --git a/tools/pip_package/setup_upbge.py b/tools/pip_package/setup_upbge.py index e574ce83b..4bd5ebc41 100644 --- a/tools/pip_package/setup_upbge.py +++ b/tools/pip_package/setup_upbge.py @@ -7,6 +7,9 @@ cur_dir = os.getcwd().replace("\\", "/") blender_version = cur_dir.split('/')[-1].split('-')[-1] module_name = f"fake-bge-module-{blender_version}" +if "NON_VERSION_PACKAGE" in os.environ: + if os.environ["NON_VERSION_PACKAGE"] == "true": + module_name = "fake-bge-module" # release version if "RELEASE_VERSION" in os.environ: