File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,12 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
157
157
rm -rf " $output_folder "
158
158
mkdir " $output_folder "
159
159
160
+ if [[ " $py_ver " == 3.5 ]]; then
161
+ export CONDA_TYPING_CONSTRAINT=" - typing"
162
+ else
163
+ export CONDA_TYPING_CONSTRAINT=" "
164
+ fi
165
+
160
166
export VSTOOLCHAIN_PACKAGE=vs2017
161
167
162
168
# We need to build the compiler activation scripts first on Windows
Original file line number Diff line number Diff line change @@ -115,13 +115,23 @@ setup_macos() {
115
115
fi
116
116
}
117
117
118
+ # set variable to determine whether the typing library needs to be built in
119
+ setup_typing () {
120
+ if [[ " $PYTHON_VERSION " == 3.5 ]]; then
121
+ export CONDA_TYPING_CONSTRAINT=" - typing"
122
+ else
123
+ export CONDA_TYPING_CONSTRAINT=" "
124
+ fi
125
+ }
126
+
118
127
# Top-level entry point for things every package will need to do
119
128
#
120
129
# Usage: setup_env 0.2.0
121
130
setup_env () {
122
131
setup_cuda
123
132
setup_build_version " $1 "
124
133
setup_macos
134
+ setup_typing
125
135
}
126
136
127
137
# Function to retry functions that sometimes timeout or have flaky failures
Original file line number Diff line number Diff line change 47
47
- mock
48
48
- av
49
49
- ca-certificates
50
- - typing
50
+ {{ environ.get('CONDA_TYPING_CONSTRAINT') }}
51
51
commands :
52
52
pytest .
53
53
You can’t perform that action at this time.
0 commit comments