Skip to content

Commit d2c7d07

Browse files
committed
Avoid building package during dependencies installation
1 parent e24e2bb commit d2c7d07

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

.github/workflows/multiplatform_build.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,17 @@ jobs:
4040
arch: "x64"
4141
env: true
4242

43-
- if: matrix.os == 'ubuntu-24.04'
44-
name: Install dependencies
45-
run: sudo apt-get install libtinfo5
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
4654
4755
- if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
4856
name: Set CXXFLAGS
@@ -57,8 +65,8 @@ jobs:
5765
- name: Install Poetry
5866
run: pip install poetry==1.8.3
5967

60-
- name: Install Python dependencies
61-
run: poetry install --no-cache --sync
68+
- name: Install project dependencies
69+
run: poetry install --no-cache --sync --no-root
6270

6371
- name: Build distribution package
6472
run: poetry build --format wheel

build.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@
1414
class Builder:
1515
"""Class responsible for building epseon_backend binaries."""
1616

17-
DEPS: tuple[tuple[str, str], ...] = (
18-
("googletest", "release-1.12.1"),
19-
("spdlog", "v1.12.0"),
20-
("pybind11", "v2.11.1"),
21-
("fmt", "10.1.1"),
22-
("vma_hpp", "v3.0.1-3"),
23-
)
24-
2517
def __init__(self) -> None:
2618
"""Initialize builder object."""
2719
self.repo_path = Path(__file__).parent
20+
subprocess.check_call(
21+
executable=sys.executable,
22+
args=[
23+
sys.executable,
24+
"-m",
25+
"pip",
26+
"list",
27+
],
28+
env=os.environ,
29+
cwd=self.repo_path.as_posix(),
30+
)
2831

2932
def build(self) -> None:
3033
"""Build extension module."""

0 commit comments

Comments
 (0)