File tree 4 files changed +46
-4
lines changed
4 files changed +46
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ uv build
55
55
# Or vanilla python build if UV fails
56
56
python3 setup.py bdist_wheel
57
57
58
+ # Minimum test to check that the package installs and imports
59
+ /build/test.sh 'import <pkg>' dist/<pkg>-*.whl
60
+
58
61
# Copy tarball and wheel to output directory
59
62
cp -r dist/* /dst
60
63
```
Original file line number Diff line number Diff line change @@ -10,4 +10,6 @@ git checkout d81fac8163364561fd6cd9d82b6ee1ba502c3526
10
10
11
11
uv build
12
12
13
+ /build/test.sh ' import fairseq' dist/fairseq-* .whl
14
+
13
15
cp -r dist/* /dst
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ # Torch is needed but not in build requirements
6
+ # shellcheck disable=SC1091
7
+ source /opt/r8/monobase/activate.sh
8
+
9
+ # Loosely based on
10
+ # https://github.com/pytorch/pytorch/blob/main/.ci/manywheel/build_cuda.sh
11
+ export TORCH_CUDA_ARCH_LIST=' 5.0;6.0;7.0;7.5;8.0;8.6;9.0'
12
+
5
13
git clone https://github.com/autonomousvision/mip-splatting.git
6
14
7
15
cd mip-splatting
8
16
project_dir=$PWD
9
17
10
18
git checkout dda02ab5ecf45d6edb8c540d9bb65c7e451345a9
11
19
12
- export TORCH_CUDA_ARCH_LIST=' 7.0;7.5;8.0;8.6+PTX'
13
-
14
- cd " $project_dir /submodules/diff-gaussian-rasterization"
15
20
# uv build fails due to missing header, potential bug?
21
+ cd " $project_dir /submodules/diff-gaussian-rasterization"
16
22
python3 setup.py bdist_wheel
17
- cp dist/* /dst
18
23
19
24
cd " $project_dir /submodules/simple-knn"
20
25
python3 setup.py bdist_wheel
26
+
27
+ /build/test.sh \
28
+ ' import diff_gaussian_rasterization; import simple_knn' \
29
+ " $project_dir /submodules/diff-gaussian-rasterization/dist/" * .whl \
30
+ " $project_dir /submodules/simple-knn/dist/" * .whl \
31
+
21
32
cp dist/* /dst
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Test wheel files produced by package scripts
4
+
5
+ if [ $# -lt 2 ]; then
6
+ echo " Usage: $( basename " $0 " ) <SCRIPT> <WHEEL>..."
7
+ exit 1
8
+ fi
9
+
10
+ script=" $1 "
11
+ shift
12
+
13
+ # Install wheel files in the user layer
14
+ # This should detect any dependency conflicts
15
+ for whl in " $@ " ; do
16
+ echo " $whl " >> /tmp/requirements.txt
17
+ done
18
+ /opt/r8/monobase/run.sh monobase.user --requirements /tmp/requirements.txt
19
+
20
+ # Activate the environment including Cog, monobase, and user venv
21
+ # shellcheck disable=SC1091
22
+ source /opt/r8/monobase/activate.sh
23
+
24
+ # Run the test script
25
+ python3 -c " $script "
26
+ echo " PASS: $script "
You can’t perform that action at this time.
0 commit comments