@@ -40,13 +40,24 @@ jobs:
40
40
arch : " x64"
41
41
env : true
42
42
43
- - if : matrix.os == 'ubuntu-24.04'
44
- name : Install dependencies
45
- run : sudo apt-get install libtinfo5
46
-
47
- - if : matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
48
- name : Set CXXFLAGS
49
- run : export CXXFLAGS="-stdlib=libc++"
43
+ - if : startsWith(matrix.os, 'ubuntu')
44
+ name : Install Python dependencies
45
+ run : |
46
+ sudo add-apt-repository universe
47
+ sudo add-apt-repository restricted
48
+ sudo add-apt-repository multiverse
49
+ sudo apt-get update
50
+ sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
51
+ libreadline-dev libsqlite3-dev wget curl llvm \
52
+ libncurses5-dev libncursesw5-dev xz-utils tk-dev \
53
+ libffi-dev liblzma-dev python3-openssl git libtinfo5
54
+ ln -s /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.5
55
+ export CXXFLAGS="-stdlib=libc++"
56
+
57
+ - if : startsWith(matrix.os, 'windows')
58
+ name : Install Python dependencies
59
+ run : |
60
+ chcp 65001 #set code page to utf-8
50
61
51
62
- name : Set up Python ${{ matrix.python-version }}
52
63
57
68
- name : Install Poetry
58
69
run : pip install poetry==1.8.3
59
70
60
- - name : Install Python dependencies
61
- run : poetry install --no-cache --sync
71
+ - name : Install project dependencies
72
+ run : poetry install --no-cache --sync --no-root
62
73
63
74
- name : Build distribution package
64
75
run : poetry build --format wheel
0 commit comments