Skip to content

Commit dd5dd61

Browse files
committed
add incremental build option to build.sh
1 parent 31f0ccf commit dd5dd61

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

build.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
# ... or similar
1010
# - torch is expected to be at $HOME/torch
1111

12-
rm -Rf build PyBuild.so dist *.egg-info cbuild
12+
if [[ x${INCREMENTAL} == x ]]; then {
13+
rm -Rf build PyBuild.so dist *.egg-info cbuild
14+
pip uninstall -y PyTorch
15+
} fi
1316
# python setup.py build_ext -i || exit 1
17+
1418
if [[ x${CYTHON} != x ]]; then { python setup.py cython_only || exit 1; } fi
15-
mkdir cbuild
19+
20+
mkdir -p cbuild
1621
export TORCH_INSTALL=$(dirname $(dirname $(which luajit)))
1722
(cd cbuild; cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${TORCH_INSTALL} && make -j 4 install) || exit 1
18-
pip uninstall -y PyTorch
1923
python setup.py install || exit 1
2024

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def get_file_datetime(filepath):
139139

140140
setup(
141141
name='PyTorch',
142-
version='2.4.0-SNAPSHOT',
142+
version='2.5.0',
143143
author='Hugh Perkins',
144144
author_email='hughperkins@gmail.com',
145145
description=(

0 commit comments

Comments
 (0)