From 23a6d1afaacb3a40c9aa319d297b9e427a379726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Fri, 10 Nov 2023 11:36:12 +0100 Subject: [PATCH 1/5] Do not call setup.py --- appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1581e6479..698bce611 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,8 +15,8 @@ environment: VENV_TEST_DIR: "venv_test" matrix: - # Python 3.11 - - PYTHON_DIR: "C:\\Python311-x64" + # Python 3.12 + - PYTHON_DIR: "C:\\Python312-x64" branches: only: @@ -49,7 +49,7 @@ build_script: - "pip freeze" # Build - - "python setup.py bdist_wheel" + - "python -m build --no-isolation --wheel" - ps: "ls dist" # Leave build virtualenv From 098f9c9b486c7398013c37f0b08ebee7fa0de81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Fri, 10 Nov 2023 11:40:44 +0100 Subject: [PATCH 2/5] Add build module --- appveyor.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 698bce611..c7d040555 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -40,9 +40,10 @@ build_script: - "%VENV_BUILD_DIR%\\Scripts\\activate.bat" # Install build dependencies - - "pip install wheel" - - "pip install numpy" - - "pip install cython" + - "pip install --upgrade build" + - "pip install --upgrade wheel" + - "pip install --upgrade numpy" + - "pip install --upgrade cython" # Print Python info - "python ci\\info_platform.py" From b794a7a86be15d5655d582962255ae093c164a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Fri, 10 Nov 2023 11:45:49 +0100 Subject: [PATCH 3/5] Add setuptools to the build script --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index c7d040555..d1ac7c0ed 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,6 +41,7 @@ build_script: # Install build dependencies - "pip install --upgrade build" + - "pip install --upgrade setuptools" - "pip install --upgrade wheel" - "pip install --upgrade numpy" - "pip install --upgrade cython" From 5346827c2f946fba8fee8998d2c5faa4385feb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Fri, 10 Nov 2023 12:17:26 +0100 Subject: [PATCH 4/5] Try a patch --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index d1ac7c0ed..c61241c67 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,6 +51,8 @@ build_script: - "pip freeze" # Build + # --no-isolation complains about oldest-supported-numpy not being installed + - "python -c \"text=open('pyproject.toml').read().replace('oldest-supported-','');open('pyproject.toml','w').write(text)\"" - "python -m build --no-isolation --wheel" - ps: "ls dist" From 368b17feda6154fb66b10052c13539ac116dbd89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Fri, 10 Nov 2023 12:30:03 +0100 Subject: [PATCH 5/5] Do not install silx --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index c61241c67..4ed269dbe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -66,7 +66,8 @@ test_script: - "%VENV_TEST_DIR%\\Scripts\\activate.bat" # Install the generated wheel package to test it - - "pip install silx" + # silx is not yet ready for Python 3.12 + # - "pip install silx" - "pip install PyQt5" - "FOR %%F IN (dist\\PyMca5*.*) DO ( pip install --pre %%F