From 3ca3b31a838cd07b1b3c2a3b06b520675b0aa9d1 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 12 Dec 2024 11:29:17 -0800 Subject: [PATCH 1/2] Update pycdc submodule and remove requirement for pre-processing bytecode maps --- CMakeLists.txt | 1 - pycdc | 2 +- src/PlasmaShop/CMakeLists.txt | 97 +++++++++++------------------------ 3 files changed, 31 insertions(+), 69 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8571f2..f103d40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,6 @@ endif() find_package(HSPlasma REQUIRED) find_package(string_theory 2.0 REQUIRED) -find_package(PythonInterp REQUIRED) if(NOT DEFINED QT_VERSION_MAJOR) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) diff --git a/pycdc b/pycdc index bf3599c..5e1c403 160000 --- a/pycdc +++ b/pycdc @@ -1 +1 @@ -Subproject commit bf3599c87a73691786d634a2afad3eaa16787b8f +Subproject commit 5e1c4037a96b966e4e6728c55b2d7ee8076a13c3 diff --git a/src/PlasmaShop/CMakeLists.txt b/src/PlasmaShop/CMakeLists.txt index 6891e95..de5d59a 100644 --- a/src/PlasmaShop/CMakeLists.txt +++ b/src/PlasmaShop/CMakeLists.txt @@ -52,72 +52,36 @@ set(pycdc_Sources ${pycdc_SOURCE_DIR}/pyc_object.cpp ${pycdc_SOURCE_DIR}/pyc_sequence.cpp ${pycdc_SOURCE_DIR}/pyc_string.cpp + + ${pycdc_SOURCE_DIR}/bytes/python_1_0.cpp + ${pycdc_SOURCE_DIR}/bytes/python_1_1.cpp + ${pycdc_SOURCE_DIR}/bytes/python_1_3.cpp + ${pycdc_SOURCE_DIR}/bytes/python_1_4.cpp + ${pycdc_SOURCE_DIR}/bytes/python_1_5.cpp + ${pycdc_SOURCE_DIR}/bytes/python_1_6.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_0.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_1.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_2.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_3.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_4.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_5.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_6.cpp + ${pycdc_SOURCE_DIR}/bytes/python_2_7.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_0.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_1.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_2.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_3.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_4.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_5.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_6.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_7.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_8.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_9.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_10.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_11.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_12.cpp + ${pycdc_SOURCE_DIR}/bytes/python_3_13.cpp ) -set(pycdc_Maps - ${pycdc_SOURCE_DIR}/bytes/python_10.map - ${pycdc_SOURCE_DIR}/bytes/python_11.map - ${pycdc_SOURCE_DIR}/bytes/python_13.map - ${pycdc_SOURCE_DIR}/bytes/python_14.map - ${pycdc_SOURCE_DIR}/bytes/python_15.map - ${pycdc_SOURCE_DIR}/bytes/python_16.map - ${pycdc_SOURCE_DIR}/bytes/python_20.map - ${pycdc_SOURCE_DIR}/bytes/python_21.map - ${pycdc_SOURCE_DIR}/bytes/python_22.map - ${pycdc_SOURCE_DIR}/bytes/python_23.map - ${pycdc_SOURCE_DIR}/bytes/python_24.map - ${pycdc_SOURCE_DIR}/bytes/python_25.map - ${pycdc_SOURCE_DIR}/bytes/python_26.map - ${pycdc_SOURCE_DIR}/bytes/python_27.map - ${pycdc_SOURCE_DIR}/bytes/python_30.map - ${pycdc_SOURCE_DIR}/bytes/python_31.map - ${pycdc_SOURCE_DIR}/bytes/python_32.map - ${pycdc_SOURCE_DIR}/bytes/python_33.map - ${pycdc_SOURCE_DIR}/bytes/python_34.map - ${pycdc_SOURCE_DIR}/bytes/python_35.map - ${pycdc_SOURCE_DIR}/bytes/python_36.map - ${pycdc_SOURCE_DIR}/bytes/python_37.map - ${pycdc_SOURCE_DIR}/bytes/python_38.map - ${pycdc_SOURCE_DIR}/bytes/python_39.map - ${pycdc_SOURCE_DIR}/bytes/python_310.map - ${pycdc_SOURCE_DIR}/bytes/python_311.map -) -set(pycdc_GeneratedSources - ${pycdc_BINARY_DIR}/bytes/python_10.cpp - ${pycdc_BINARY_DIR}/bytes/python_11.cpp - ${pycdc_BINARY_DIR}/bytes/python_13.cpp - ${pycdc_BINARY_DIR}/bytes/python_14.cpp - ${pycdc_BINARY_DIR}/bytes/python_15.cpp - ${pycdc_BINARY_DIR}/bytes/python_16.cpp - ${pycdc_BINARY_DIR}/bytes/python_20.cpp - ${pycdc_BINARY_DIR}/bytes/python_21.cpp - ${pycdc_BINARY_DIR}/bytes/python_22.cpp - ${pycdc_BINARY_DIR}/bytes/python_23.cpp - ${pycdc_BINARY_DIR}/bytes/python_24.cpp - ${pycdc_BINARY_DIR}/bytes/python_25.cpp - ${pycdc_BINARY_DIR}/bytes/python_26.cpp - ${pycdc_BINARY_DIR}/bytes/python_27.cpp - ${pycdc_BINARY_DIR}/bytes/python_30.cpp - ${pycdc_BINARY_DIR}/bytes/python_31.cpp - ${pycdc_BINARY_DIR}/bytes/python_32.cpp - ${pycdc_BINARY_DIR}/bytes/python_33.cpp - ${pycdc_BINARY_DIR}/bytes/python_34.cpp - ${pycdc_BINARY_DIR}/bytes/python_35.cpp - ${pycdc_BINARY_DIR}/bytes/python_36.cpp - ${pycdc_BINARY_DIR}/bytes/python_37.cpp - ${pycdc_BINARY_DIR}/bytes/python_38.cpp - ${pycdc_BINARY_DIR}/bytes/python_39.cpp - ${pycdc_BINARY_DIR}/bytes/python_310.cpp - ${pycdc_BINARY_DIR}/bytes/python_311.cpp -) -# run "comp_map.py" in the pycdc folder to generate the source code -add_custom_target(create-bytes-source-dir ALL - COMMAND ${CMAKE_COMMAND} -E make_directory ${pycdc_BINARY_DIR}/bytes) -add_custom_command(OUTPUT ${pycdc_GeneratedSources} - COMMAND ${PYTHON_EXECUTABLE} ${pycdc_SOURCE_DIR}/bytes/comp_map.py - ${pycdc_SOURCE_DIR}/bytes ${pycdc_BINARY_DIR}/bytes - DEPENDS ${pycdc_Maps} ${pycdc_SOURCE_DIR}/bytes/comp_map.py - create-bytes-source-dir - WORKING_DIRECTORY ${pycdc_SOURCE_DIR}/bytes) if(WIN32) set(PlasmaShop_Sources ${PlasmaShop_Sources} res/PlasmaShop.rc) @@ -130,8 +94,7 @@ include_directories("${pycdc_SOURCE_DIR}") add_executable(PlasmaShop WIN32 MACOSX_BUNDLE ${PlasmaShop_Headers} ${PlasmaShop_Sources} - ${pycdc_Headers} ${pycdc_Sources} ${pycdc_GeneratedSources} - ${PlasmaShop_QRC}) + ${pycdc_Headers} ${pycdc_Sources} ${PlasmaShop_QRC}) target_link_libraries(PlasmaShop PSCommon Qt::Core Qt::Widgets) target_link_libraries(PlasmaShop HSPlasma) From 9a3eea66cab6cfae54b28535f7dc4536af95cfbf Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 12 Dec 2024 11:48:13 -0800 Subject: [PATCH 2/2] CI: Ensure apt cache is up-to-date before installing new packages --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2a99ed..fe06592 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: - name: Install Dependencies run: | + sudo apt-get update sudo apt-get install -y libkf5syntaxhighlighting-dev ninja-build qtbase5-dev - name: Checkout string_theory