Skip to content

Commit 973d5db

Browse files
Merge pull request #157 from SDNNetSim/develop
Merge develop into release/6.0.0
2 parents d4b8dbb + f21de4f commit 973d5db

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,21 @@ jobs:
5454
5555
- name: Install Python dependencies
5656
run: |
57-
python -m pip install --upgrade pip
57+
python -m pip install --upgrade pip setuptools wheel
58+
59+
# Install torch first (required before PyG packages)
60+
pip install torch==2.2.2
61+
62+
# Install PyG packages with pre-built wheels
63+
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.2.2+cpu.html
64+
65+
# Install the rest of the requirements
66+
pip install -r requirements.txt
67+
68+
# Install the package with dev dependencies
5869
pip install -e .[dev]
70+
71+
# Install additional Sphinx packages
5972
pip install sphinx sphinx-rtd-theme sphinx-copybutton sphinx-tabs myst-parser
6073
6174
- name: Build documentation

install.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ echo "🖥️ Platform: $platform ($arch)"
4242
echo "📦 Upgrading pip..."
4343
python -m pip install --upgrade pip setuptools wheel
4444

45-
# Install core dependencies first (this includes PyTorch)
46-
echo "🔧 Installing core dependencies..."
47-
pip install -e .
45+
# Install PyTorch first (required before PyG packages can be installed)
46+
echo "🔥 Installing PyTorch..."
47+
pip install torch==2.2.2
4848

4949
# Install PyTorch Geometric dependencies with platform-specific handling
50+
# Must be done BEFORE pip install -e . to avoid build failures
5051
echo "🧠 Installing PyTorch Geometric dependencies..."
5152

5253
if [[ "$platform" == "darwin" ]]; then
@@ -65,6 +66,10 @@ else
6566
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.2.2+cpu.html
6667
fi
6768

69+
# Install core dependencies
70+
echo "🔧 Installing core dependencies..."
71+
pip install -e .
72+
6873
# Install PyTorch Geometric
6974
echo "📐 Installing PyTorch Geometric..."
7075
pip install torch-geometric==2.6.1

0 commit comments

Comments
 (0)