Skip to content

Commit b3a255f

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

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.github/workflows/multiplatform_build.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ 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: sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
46+
libreadline-dev libsqlite3-dev wget curl llvm \
47+
libncurses5-dev libncursesw5-dev xz-utils tk-dev \
48+
libffi-dev liblzma-dev python3-openssl git
4649

4750
- if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04'
4851
name: Set CXXFLAGS
@@ -57,8 +60,8 @@ jobs:
5760
- name: Install Poetry
5861
run: pip install poetry==1.8.3
5962

60-
- name: Install Python dependencies
61-
run: poetry install --no-cache --sync
63+
- name: Install project dependencies
64+
run: poetry install --no-cache --sync --no-root
6265

6366
- name: Build distribution package
6467
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)