Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #509 from niboshi/use-pip
Browse files Browse the repository at this point in the history
Use pip for installing Chainer/CuPy
  • Loading branch information
toslunar authored Jun 10, 2019
2 parents 8420a58 + 0cc0ece commit 9e5a25a
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 27 deletions.
8 changes: 2 additions & 6 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

# Chainer setup script installs specific version of CuPy.
# We need to install Chainer first for test.
cd chainer
python setup.py install --user
cd ..
pip install --user chainer/

cd cupy
python setup.py build -j 4 develop install --user || python setup.py develop install --user
cd ..
pip install --user -e cupy/

cd chainer

Expand Down
3 changes: 2 additions & 1 deletion test_cpu.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash -e


pip install --user -e chainer/

cd chainer
python setup.py develop install --user

export CUPY_DUMP_CUDA_SOURCE_ON_ERROR=1

Expand Down
3 changes: 2 additions & 1 deletion test_cupy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash -ex

pip install --user -e cupy/

cd cupy
python setup.py build -j 4 develop install --user || python setup.py develop install --user

export CUPY_DUMP_CUDA_SOURCE_ON_ERROR=1

Expand Down
6 changes: 3 additions & 3 deletions test_cupy_doc.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh -ex

cd cupy
python setup.py -q build -j 4 develop install --user || python setup.py -q develop install --user
pip install --user -e cupy/

cd cupy/docs

cd docs
export SPHINXOPTS=-W

# Generate HTML and preserve it for preview.
Expand Down
3 changes: 2 additions & 1 deletion test_cupy_slow.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash -ex

pip install --user -e cupy/

cd cupy
python setup.py build -j 4 develop install --user || python setup.py develop install --user

export CUPY_DUMP_CUDA_SOURCE_ON_ERROR=1

Expand Down
4 changes: 1 addition & 3 deletions test_doc.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/sh -ex

cd cupy
python setup.py -q build -j 4 develop install --user || python setup.py -q develop install --user
cd ..
pip install --user -e cupy/

cd chainer
pip install --user -e .[docs]
Expand Down
4 changes: 1 addition & 3 deletions test_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

pip install -U pip --user

cd cupy
python setup.py build -j 4 develop install --user || python setup.py develop install --user
cd ..
pip install --user -e cupy/

cd chainer
rm -rf dist
Expand Down
4 changes: 1 addition & 3 deletions test_prev_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ CHAINER_DIR=chainer-${PREV_VER}

pip install -U pip --user

cd cupy
python setup.py build -j 4 develop install --user || python setup.py develop install --user
cd ..
pip install --user -e cupy/

cd chainer
rm -rf dist
Expand Down
8 changes: 2 additions & 6 deletions test_slow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

# Chainer setup script installs specific version of CuPy.
# We need to install Chainer first for test.
cd chainer
python setup.py install --user
cd ..
pip install --user chainer/

cd cupy
python setup.py build -j 4 develop install --user || python setup.py develop install --user
cd ..
pip install --user -e cupy/

cd chainer

Expand Down

0 comments on commit 9e5a25a

Please sign in to comment.