Skip to content

Commit 2cb7ea6

Browse files
committed
update appveyor.yml and remove mingw parts
1 parent 58c7e82 commit 2cb7ea6

File tree

1 file changed

+19
-54
lines changed

1 file changed

+19
-54
lines changed

appveyor.yml

Lines changed: 19 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ environment:
3838
PYTHON_VERSION: 311-x64
3939
WITH_NUMPY: no
4040
CONDA_INSTALL_LOCN: C:\\Miniconda38-x64
41-
#- BUILD_TYPE: "Debug"
42-
# COMPILER: MinGW-w64
43-
# PYTHON_VERSION: 39-x64
44-
# WITH_NUMPY: no
45-
#- BUILD_TYPE: "Release"
46-
# COMPILER: MinGW-w64
47-
# PYTHON_VERSION: 39-x64
48-
#- BUILD_TYPE: "Debug"
49-
# COMPILER: MinGW-w64
50-
# PYTHON_VERSION: 39-x64
51-
# WITH_SYMPY: no
5241
- BUILD_TYPE: "Release"
5342
COMPILER: MSVC15
5443
PLATFORM: "x64"
@@ -63,41 +52,23 @@ install:
6352
- git clone https://github.com/sympy/symengine symengine-cpp
6453
- if [%PLATFORM%]==[Win32] set "CONDA_SUBDIR=win-32"
6554

66-
- if [%COMPILER%]==[MSVC15] call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
67-
- if [%COMPILER%]==[MSVC15] set "CONDA_DEPS=mpir=3.0.0 vc=14"
68-
- if [%COMPILER%]==[MSVC15] if [%WITH_MPFR%]==[yes] set "CONDA_DEPS=%CONDA_DEPS% mpfr=3.1.5"
69-
- if [%COMPILER%]==[MSVC15] if [%WITH_MPC%]==[yes] set "CONDA_DEPS=%CONDA_DEPS% mpc=1.0.3"
70-
- if [%COMPILER%]==[MSVC15] if [%WITH_LLVM%]==[yes] set "CONDA_DEPS=%CONDA_DEPS% llvmdev=4.0"
71-
- if [%COMPILER%]==[MSVC15] set "CONDA_DEPS=%CONDA_DEPS% -c conda-forge"
72-
- if [%COMPILER%]==[MSVC15] if [%BUILD_TYPE%]==[Debug] set "CONDA_DEPS=%CONDA_DEPS% -c symengine/label/debug"
73-
- if [%COMPILER%]==[MSVC15] conda create -n deps --yes %CONDA_DEPS%
74-
- if [%COMPILER%]==[MSVC15] call conda activate deps
75-
- if [%COMPILER%]==[MSVC15] echo %CONDA_PREFIX%
76-
- if [%COMPILER%]==[MSVC15] echo %PATH%
77-
- if [%COMPILER%]==[MSVC15] set "PATH=%PATH%;%CONDA_PREFIX%\\Library\\bin;%CONDA_PREFIX%"
78-
- if [%COMPILER%]==[MSVC15] echo %PATH%
79-
80-
- if [%COMPILER%]==[MinGW] set "PATH=C:\MinGW\bin;%PATH%"
81-
- if [%COMPILER%]==[MinGW] mingw-get update
82-
# workaround for https://github.com/appveyor/ci/issues/996
83-
- if [%COMPILER%]==[MinGW] mingw-get upgrade mingw32-libstdc++
84-
- if [%COMPILER%]==[MinGW] mingw-get install mingw32-gmp
85-
86-
- if [%COMPILER%]==[MinGW-w64] set "PATH=C:\mingw64\bin;%PATH%"
87-
88-
- rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
89-
90-
- if [%COMPILER%]==[MinGW-w64] call symengine-cpp\bin\appveyor-download.cmd "https://raw.githubusercontent.com/symengine/dependencies/5cff7d1736877336cf9fb58267111beea4fa152f/x86_64-4.9.1-release-posix-seh-rt_v3-rev1.7z" -FileName mw64.7z
91-
- if [%COMPILER%]==[MinGW-w64] 7z x -oC:\ mw64.7z > NUL
92-
- if [%COMPILER%]==[MinGW-w64] call symengine-cpp\bin\appveyor-download.cmd "https://raw.githubusercontent.com/symengine/dependencies/5cff7d1736877336cf9fb58267111beea4fa152f/gmp-6.0.0-x86_64-w64-mingw32.7z" -FileName gmp.7z
93-
- if [%COMPILER%]==[MinGW-w64] 7z x -oC:\mingw64 gmp.7z > NUL
94-
95-
- if NOT [%COMPILER%]==[MSVC15] call symengine-cpp\bin\appveyor-download.cmd "https://raw.githubusercontent.com/symengine/dependencies/dcc10cce2133e2b57e61c5ced6120139bbcdfa20/python-libs-mingw32.7z" -FileName pylibs.7z
96-
- if NOT [%COMPILER%]==[MSVC15] 7z x -aoa -oC:\ pylibs.7z > NUL
55+
- call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
56+
- set "CONDA_DEPS=mpir=3.0.0 vc=14"
57+
- if [%WITH_MPFR%]==[yes] set "CONDA_DEPS=%CONDA_DEPS% mpfr=3.1.5"
58+
- if [%WITH_MPC%]==[yes] set "CONDA_DEPS=%CONDA_DEPS% mpc=1.0.3"
59+
- if [%WITH_LLVM%]==[yes] set "CONDA_DEPS=%CONDA_DEPS% llvmdev=4.0"
60+
- set "CONDA_DEPS=%CONDA_DEPS% -c conda-forge"
61+
- if [%BUILD_TYPE%]==[Debug] set "CONDA_DEPS=%CONDA_DEPS% -c symengine/label/debug"
62+
- conda create -n deps --yes %CONDA_DEPS%
63+
- call conda activate deps
64+
- echo %CONDA_PREFIX%
65+
- echo %PATH%
66+
- set "PATH=%PATH%;%CONDA_PREFIX%\\Library\\bin;%CONDA_PREFIX%"
67+
- echo %PATH%
9768

9869
- set "PATH=C:\Python%PYTHON_VERSION%;C:\Python%PYTHON_VERSION%\Scripts;%PATH%"
9970
- echo %PATH%
100-
- pip install nose pytest cython setuptools
71+
- pip install pytest cython scikit-build-core cython-cmake setuptools_scm
10172
- if NOT [%WITH_NUMPY%]==[no] pip install numpy
10273
- if NOT [%WITH_SYMPY%]==[no] pip install sympy
10374

@@ -107,14 +78,10 @@ install:
10778
- mkdir build
10879
- cd build
10980

110-
- if [%COMPILER%]==[MSVC15] set "CMAKE_GENERATOR=Visual Studio 16 2019"
111-
- if [%COMPILER%]==[MSVC15] set "CMAKE_GENERATOR_PLATFORM=%PLATFORM%"
112-
- if [%COMPILER%]==[MinGW] set "CMAKE_GENERATOR=MinGW Makefiles"
113-
- if [%COMPILER%]==[MinGW-w64] set "CMAKE_GENERATOR=MinGW Makefiles"
81+
- set "CMAKE_GENERATOR=Visual Studio 16 2019"
82+
- set "CMAKE_GENERATOR_PLATFORM=%PLATFORM%"
11483

115-
- if [%COMPILER%]==[MSVC15] set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=%CONDA_PREFIX%\\Library"
116-
- if [%COMPILER%]==[MinGW] set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=C:\MinGW -DCMAKE_BUILD_TYPE=%BUILD_TYPE%"
117-
- if [%COMPILER%]==[MinGW-w64] set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=C:\mingw64 -DCMAKE_BUILD_TYPE=%BUILD_TYPE%"
84+
- set "CMAKE_ARGS=-DCMAKE_PREFIX_PATH=%CONDA_PREFIX%\\Library"
11885

11986
- if [%WITH_MPFR%]==[yes] set "CMAKE_ARGS=%CMAKE_ARGS% -DWITH_MPFR=yes"
12087
- if [%WITH_MPC%]==[yes] set "CMAKE_ARGS=%CMAKE_ARGS% -DWITH_MPC=yes"
@@ -130,12 +97,10 @@ build_script:
13097
- set "PATH=C:\symengine\bin\;%PATH%"
13198
- set "SYMENGINE_PY_ADD_PATH_TO_SEARCH_DIRS=1"
13299
- echo %PATH%
133-
- if [%COMPILER%]==[MSVC15] python setup.py install build_ext --compiler=msvc --build-type=%BUILD_TYPE%
134-
- if [%COMPILER%]==[MinGW] python setup.py install build_ext --compiler=mingw --inplace
135-
- if [%COMPILER%]==[MinGW-w64] python setup.py install build_ext --compiler=mingw --inplace
100+
- set "CMAKE_ARGS="
101+
- python install -e . --no-build-isolation -Ccmake.build-type=%BUILD_TYPE% -vv
136102

137103
test_script:
138-
- if not [%COMPILER%]==[MSVC15] nosetests
139104
- mkdir empty && cd empty
140105
- python %PYTHON_SOURCE_DIR%\bin\test_python.py
141106

0 commit comments

Comments
 (0)