Skip to content

Commit

Permalink
bugfix: include files for comfy3d
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Oct 28, 2024
1 parent 8076147 commit 254901e
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ curl https://www.python.org/ftp/python/3.12.7/python-3.12.7-embed-amd64.zip \
-o python_embeded.zip
unzip python_embeded.zip -d "$workdir"/python_embeded

# ComfyUI-3D-Pack, part 1/2
# Do this firstly (in a clean python_embeded folder)
$gcs https://github.com/MrForExample/Comfy3D_Pre_Builds.git \
"$workdir"/Comfy3D_Pre_Builds

mv \
"$workdir"/Comfy3D_Pre_Builds/_Python_Source_cpp/py312/* \
"$workdir"/python_embeded/

rm -rf "$workdir"/Comfy3D_Pre_Builds

# Setup Python embeded, part 2/3
cd "$workdir"/python_embeded
echo 'import site' >> ./python312._pth
Expand Down Expand Up @@ -48,20 +59,6 @@ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
./python.exe -s -m pip install \
-r "$workdir"/requirements2.txt

# ComfyUI-3D-Pack, part 1/2
$gcs https://github.com/MrForExample/Comfy3D_Pre_Builds.git \
"$workdir"/Comfy3D_Pre_Builds

mv \
"$workdir"/Comfy3D_Pre_Builds/_Python_Source_cpp/py312/include \
"$workdir"/python_embeded/include

mv \
"$workdir"/Comfy3D_Pre_Builds/_Python_Source_cpp/py312/libs \
"$workdir"/python_embeded/libs

rm -rf "$workdir"/Comfy3D_Pre_Builds

# ComfyUI-3D-Pack, part 2/2
./python.exe -s -m pip install \
https://github.com/YanWenKun/ComfyUI-Windows-Portable/releases/download/v5.3-wheels/pointnet2_ops-3.0.0-cp312-cp312-win_amd64.whl \
Expand Down

0 comments on commit 254901e

Please sign in to comment.