Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix detection of Python 3.13
Dmitry Kazakov81bad8a25524
diff --git a/CMakeLists.txt b/CMakeLists.txtindex d650cadd18..1668275c23 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -391,6 +391,17 @@ int main(int argc, char *argv[]) {}" ${OUTPUT_VARNAME})endfunction()+if(NOT WIN32)+ # On Unix systems we ship our own version of Python and manually set PATH+ # pointing to that. This version of Python may differ from the one installed+ # in the system, so we should make sure that the version of Python mentioned+ # in VIRTUAL_ENV does **not** take precedence over the one we ship ourselves.+ if(DEFINED ENV{VIRTUAL_ENV})+ message(WARNING "VIRTUAL_ENV environment variable is set! It may cause clashes with our own Python version. Instructing CMake to ignore the virtual environment...")+ set (Python_FIND_VIRTUALENV STANDARD)+ endif()+endif()+if(WIN32)set(Python_FIND_STRATEGY LOCATION)find_package(Python 3.8 COMPONENTS Development Interpreter)diff --git a/build-tools/ci-scripts/android.yml b/build-tools/ci-scripts/android.ymlindex 1ad124179e..dbbcb0c935 100644--- a/build-tools/ci-scripts/android.yml+++ b/build-tools/ci-scripts/android.yml@@ -43,6 +43,8 @@- pip install -r krita-deps-management/requirements.txt# Reactivate venv to force it to use the pip version of meson- . venv/bin/activate+ # make sure venv doesn't take precedence over normal PATH search+ - unset VIRTUAL_ENV- if [ "$KRITACI_ANDROID_PACKAGE_TYPE" == "nightly" ]; then pip install -r ci-notary-service/requirements.txt; fiscript:diff --git a/build-tools/ci-scripts/linux.yml b/build-tools/ci-scripts/linux.ymlindex db9a9d1cc2..c67b9e0dd6 100644--- a/build-tools/ci-scripts/linux.yml+++ b/build-tools/ci-scripts/linux.yml@@ -33,6 +33,8 @@ linux-build:- pip install -r krita-deps-management/requirements.txt# Reactivate venv to force it to use the pip version of meson- . venv/bin/activate+ # make sure venv doesn't take precedence over normal PATH search+ - unset VIRTUAL_ENV- if [ "$KRITACI_SKIP_UPLOAD_NIGHTLY_PACKAGE" != "True" ]; then pip install -r ci-notary-service/requirements.txt; fi- export PATH="$HOME/tools/bin:$PATH"diff --git a/build-tools/ci-scripts/macos.yml b/build-tools/ci-scripts/macos.ymlindex b9f61de3b7..b7f990f711 100644--- a/build-tools/ci-scripts/macos.yml+++ b/build-tools/ci-scripts/macos.yml@@ -42,6 +42,8 @@ macos-build:- python3 -m venv venv --upgrade-deps- . venv/bin/activate+ # make sure venv doesn't take precedence over normal PATH search+ - unset VIRTUAL_ENV- pip install -r krita-deps-management/requirements.txt# framework for signing, notarization and package upload