Skip to content

Commit 2f4c919

Browse files
authored
[CI] Use pip install (#3200)
1 parent 94003d6 commit 2f4c919

File tree

41 files changed

+92
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+92
-89
lines changed

.github/unittest/linux/scripts/run_all.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ else
109109
fi
110110

111111
# sanity check: remove?
112-
python3 -c """
112+
python -c """
113113
import dm_control
114114
from dm_control import composer
115115
from tensorboard import *
@@ -173,17 +173,17 @@ else
173173
fi
174174

175175
printf "* Installing torchrl\n"
176-
python setup.py develop
176+
python -m pip install -e . --no-build-isolation
177177

178178

179179
if [ "${CU_VERSION:-}" != cpu ] ; then
180180
printf "* Installing VC1\n"
181-
python3 -c """
181+
python -c """
182182
from torchrl.envs.transforms.vc1 import VC1Transform
183183
VC1Transform.install_vc_models(auto_exit=True)
184184
"""
185185

186-
python3 -c """
186+
python -c """
187187
import vc_models
188188
from vc_models.models.vit import model_utils
189189
print(model_utils)

.github/unittest/linux_distributed/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ else
5757
fi
5858

5959
printf "* Installing torchrl\n"
60-
python setup.py develop
60+
python -m pip install -e . --no-build-isolation

.github/unittest/linux_libs/scripts_ataridqn/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
python -c "import functorch;import tensordict"
5656

5757
printf "* Installing torchrl\n"
58-
python setup.py develop
58+
python -m pip install -e . --no-build-isolation
5959

6060
# smoke test
6161
python -c "import torchrl"

.github/unittest/linux_libs/scripts_brax/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pip install git+https://github.com/pytorch/tensordict.git --progress-bar off
5050
python -c "import functorch;import tensordict"
5151

5252
printf "* Installing torchrl\n"
53-
python setup.py develop
53+
python -m pip install -e . --no-build-isolation
5454

5555
# smoke test
5656
python -c "import torchrl"

.github/unittest/linux_libs/scripts_brax/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ except Exception as e:
6262
print('Falling back to JAX CPU')
6363
"
6464

65-
python3 -c 'import torch;t = torch.ones([2,2], device="cuda:0");print(t);print("tensor device:" + str(t.device))'
65+
python -c 'import torch;t = torch.ones([2,2], device="cuda:0");print(t);print("tensor device:" + str(t.device))'
6666

6767
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/test_libs.py --instafail -v --durations 200 --capture no -k TestBrax --error-for-skips
6868
coverage combine

.github/unittest/linux_libs/scripts_chess/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fi
7171
python -c "import functorch;import tensordict"
7272

7373
printf "* Installing torchrl\n"
74-
python setup.py develop
74+
python -m pip install -e . --no-build-isolation
7575

7676
# smoke test
7777
python -c "import torchrl"

.github/unittest/linux_libs/scripts_d4rl/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
python -c "import functorch;import tensordict"
5656

5757
printf "* Installing torchrl\n"
58-
python setup.py develop
58+
python -m pip install -e . --no-build-isolation
5959

6060
# smoke test
6161
python -c "import torchrl"

.github/unittest/linux_libs/scripts_d4rl/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd ..
2020
#flow is a dependency disaster of biblical scale
2121
#git clone https://github.com/flow-project/flow.git
2222
#cd flow
23-
#python setup.py develop
23+
#python -m pip install -e . --no-build-isolation
2424
#cd ..
2525

2626
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ if [ ! -d "${env_dir}" ]; then
6363
fi
6464
conda activate "${env_dir}"
6565

66-
python3 -m pip install pip --upgrade
66+
python -m pip install pip --upgrade
6767

6868
#pip3 uninstall cython -y
6969
#pip uninstall cython -y
7070
#conda uninstall cython -y
71-
python3 -m pip install "cython<3" --upgrade
71+
python -m pip install "cython<3" --upgrade
7272
#conda install -c anaconda cython="<3.0.0" -y
7373

7474

.github/unittest/linux_libs/scripts_envpool/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ python -c "import functorch"
4040
pip install git+https://github.com/pytorch/tensordict
4141

4242
printf "* Installing torchrl\n"
43-
python setup.py develop
43+
python -m pip install -e . --no-build-isolation

0 commit comments

Comments
 (0)