Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
fc33c46f
Unverified
Commit
fc33c46f
authored
Feb 23, 2021
by
Eli Uriegas
Committed by
GitHub
Feb 23, 2021
Browse files
.circleci: Don't install numpy directly (#3444)
parent
67b25288
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
20 deletions
+8
-20
.circleci/config.yml
.circleci/config.yml
+1
-3
.circleci/config.yml.in
.circleci/config.yml.in
+1
-3
.circleci/smoke_test/docker/Dockerfile
.circleci/smoke_test/docker/Dockerfile
+3
-3
.circleci/unittest/linux/scripts/environment.yml
.circleci/unittest/linux/scripts/environment.yml
+1
-1
.circleci/unittest/linux/scripts/install.sh
.circleci/unittest/linux/scripts/install.sh
+1
-1
.circleci/unittest/linux/scripts/setup_env.sh
.circleci/unittest/linux/scripts/setup_env.sh
+0
-3
.circleci/unittest/windows/scripts/install.sh
.circleci/unittest/windows/scripts/install.sh
+1
-1
.circleci/unittest/windows/scripts/setup_env.sh
.circleci/unittest/windows/scripts/setup_env.sh
+0
-5
No files found.
.circleci/config.yml
View file @
fc33c46f
...
@@ -119,7 +119,7 @@ jobs:
...
@@ -119,7 +119,7 @@ jobs:
command
:
|
command
:
|
sudo apt-get update -y
sudo apt-get update -y
sudo apt install -y libturbojpeg-dev
sudo apt install -y libturbojpeg-dev
pip install --user --progress-bar off
numpy
mypy
pip install --user --progress-bar off mypy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --editable .
pip install --user --progress-bar off --editable .
mypy --config-file mypy.ini
mypy --config-file mypy.ini
...
@@ -153,7 +153,6 @@ jobs:
...
@@ -153,7 +153,6 @@ jobs:
-
checkout
-
checkout
-
run
:
-
run
:
command
:
|
command
:
|
pip install --user --progress-bar off numpy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# need to install torchvision dependencies due to transitive imports
# need to install torchvision dependencies due to transitive imports
pip install --user --progress-bar off --editable .
pip install --user --progress-bar off --editable .
...
@@ -166,7 +165,6 @@ jobs:
...
@@ -166,7 +165,6 @@ jobs:
-
checkout
-
checkout
-
run
:
-
run
:
command
:
|
command
:
|
pip install --user --progress-bar off numpy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# need to install torchvision dependencies due to transitive imports
# need to install torchvision dependencies due to transitive imports
pip install --user --progress-bar off --editable .
pip install --user --progress-bar off --editable .
...
...
.circleci/config.yml.in
View file @
fc33c46f
...
@@ -119,7 +119,7 @@ jobs:
...
@@ -119,7 +119,7 @@ jobs:
command: |
command: |
sudo apt-get update -y
sudo apt-get update -y
sudo apt install -y libturbojpeg-dev
sudo apt install -y libturbojpeg-dev
pip install --user --progress-bar off
numpy
mypy
pip install --user --progress-bar off mypy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --editable .
pip install --user --progress-bar off --editable .
mypy --config-file mypy.ini
mypy --config-file mypy.ini
...
@@ -153,7 +153,6 @@ jobs:
...
@@ -153,7 +153,6 @@ jobs:
- checkout
- checkout
- run:
- run:
command: |
command: |
pip install --user --progress-bar off numpy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# need to install torchvision dependencies due to transitive imports
# need to install torchvision dependencies due to transitive imports
pip install --user --progress-bar off --editable .
pip install --user --progress-bar off --editable .
...
@@ -166,7 +165,6 @@ jobs:
...
@@ -166,7 +165,6 @@ jobs:
- checkout
- checkout
- run:
- run:
command: |
command: |
pip install --user --progress-bar off numpy
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# need to install torchvision dependencies due to transitive imports
# need to install torchvision dependencies due to transitive imports
pip install --user --progress-bar off --editable .
pip install --user --progress-bar off --editable .
...
...
.circleci/smoke_test/docker/Dockerfile
View file @
fc33c46f
...
@@ -30,7 +30,7 @@ RUN conda create -y --name python3.7 python=3.7
...
@@ -30,7 +30,7 @@ RUN conda create -y --name python3.7 python=3.7
RUN
conda create
-y
--name
python3.8
python
=
3.8
RUN
conda create
-y
--name
python3.8
python
=
3.8
SHELL
[ "/bin/bash", "-c" ]
SHELL
[ "/bin/bash", "-c" ]
RUN
echo
"source /usr/local/etc/profile.d/conda.sh"
>>
~/.bashrc
RUN
echo
"source /usr/local/etc/profile.d/conda.sh"
>>
~/.bashrc
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.6
&&
conda
install
-y
numpy
Pillow
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.6
&&
conda
install
-y
Pillow
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.7
&&
conda
install
-y
numpy
Pillow
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.7
&&
conda
install
-y
Pillow
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.8
&&
conda
install
-y
numpy
Pillow
RUN
source
/usr/local/etc/profile.d/conda.sh
&&
conda activate python3.8
&&
conda
install
-y
Pillow
CMD
[ "/bin/bash"]
CMD
[ "/bin/bash"]
.circleci/unittest/linux/scripts/environment.yml
View file @
fc33c46f
channels
:
channels
:
-
pytorch
-
pytorch
-
defaults
-
defaults
# using conda-forge for python v3.9
+
# using conda-forge for python v3.9
-
conda-forge
-
conda-forge
dependencies
:
dependencies
:
-
pytest
-
pytest
...
...
.circleci/unittest/linux/scripts/install.sh
View file @
fc33c46f
...
@@ -24,7 +24,7 @@ else
...
@@ -24,7 +24,7 @@ else
fi
fi
printf
"Installing PyTorch with %s
\n
"
"
${
cudatoolkit
}
"
printf
"Installing PyTorch with %s
\n
"
"
${
cudatoolkit
}
"
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
-c
conda-forge pytorch
"
${
cudatoolkit
}
"
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
-c
conda-forge
"pytorch-
${
UPLOAD_CHANNEL
}
"
::
pytorch
"
${
cudatoolkit
}
"
printf
"* Installing torchvision
\n
"
printf
"* Installing torchvision
\n
"
python setup.py develop
python setup.py develop
.circleci/unittest/linux/scripts/setup_env.sh
View file @
fc33c46f
...
@@ -36,13 +36,10 @@ conda activate "${env_dir}"
...
@@ -36,13 +36,10 @@ conda activate "${env_dir}"
# 3. Install Conda dependencies
# 3. Install Conda dependencies
printf
"* Installing dependencies (except PyTorch)
\n
"
printf
"* Installing dependencies (except PyTorch)
\n
"
NUMPY_MIN_VER
=
"1.11"
FFMPEG_PIN
=
"=4.2"
FFMPEG_PIN
=
"=4.2"
if
[[
"
${
PYTHON_VERSION
}
"
=
"3.9"
]]
;
then
if
[[
"
${
PYTHON_VERSION
}
"
=
"3.9"
]]
;
then
NUMPY_MIN_VER
=
"1.20"
FFMPEG_PIN
=
">=4.2"
FFMPEG_PIN
=
">=4.2"
fi
fi
conda
install
-y
-c
conda-forge
"numpy >=
${
NUMPY_MIN_VER
}
"
conda
install
-y
-c
pytorch
"ffmpeg
${
FFMPEG_PIN
}
"
conda
install
-y
-c
pytorch
"ffmpeg
${
FFMPEG_PIN
}
"
conda
env
update
--file
"
${
this_dir
}
/environment.yml"
--prune
conda
env
update
--file
"
${
this_dir
}
/environment.yml"
--prune
.circleci/unittest/windows/scripts/install.sh
View file @
fc33c46f
...
@@ -26,7 +26,7 @@ else
...
@@ -26,7 +26,7 @@ else
fi
fi
printf
"Installing PyTorch with %s
\n
"
"
${
cudatoolkit
}
"
printf
"Installing PyTorch with %s
\n
"
"
${
cudatoolkit
}
"
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
-c
conda-forge pytorch
"
${
cudatoolkit
}
"
conda
install
-y
-c
"pytorch-
${
UPLOAD_CHANNEL
}
"
-c
conda-forge
"pytorch-
${
UPLOAD_CHANNEL
}
"
::
pytorch
"
${
cudatoolkit
}
"
printf
"* Installing torchvision
\n
"
printf
"* Installing torchvision
\n
"
"
$this_dir
/vc_env_helper.bat"
python setup.py develop
"
$this_dir
/vc_env_helper.bat"
python setup.py develop
.circleci/unittest/windows/scripts/setup_env.sh
View file @
fc33c46f
...
@@ -36,9 +36,4 @@ conda activate "${env_dir}"
...
@@ -36,9 +36,4 @@ conda activate "${env_dir}"
# 3. Install Conda dependencies
# 3. Install Conda dependencies
printf
"* Installing dependencies (except PyTorch)
\n
"
printf
"* Installing dependencies (except PyTorch)
\n
"
NUMPY_MIN_VER
=
"1.11"
if
[[
"
${
PYTHON_VERSION
}
"
=
"3.9"
]]
;
then
NUMPY_MIN_VER
=
"1.20"
fi
conda
install
-y
-c
conda-forge
"numpy >=
${
NUMPY_MIN_VER
}
"
conda
env
update
--file
"
${
this_dir
}
/environment.yml"
--prune
conda
env
update
--file
"
${
this_dir
}
/environment.yml"
--prune
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment