Skip to content

Commit 15caf39

Browse files
authored
Merge pull request #45 from thewtex/group-tweaks
Group tweaks
2 parents 74e6946 + f43582d commit 15caf39

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

scripts/internal/manylinux-build-wheels.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,8 @@ for PYBIN in "${PYBINARIES[@]}"; do
137137
echo "Skipping ${PYBIN}"
138138
continue
139139
fi
140-
if [[ ${SINGLE_WHEEL} == 1 ]]; then
141-
package="itk"
142-
else
143-
package="itk-meta"
144-
fi
145-
${PYBIN}/pip install ${package} --no-cache-dir --no-index -f /work/dist
146140
${PYBIN}/pip install numpy
141+
${PYBIN}/pip install itk --no-cache-dir --no-index -f /work/dist
147142
(cd $HOME && ${PYBIN}/python -c 'from itk import ITKCommon;')
148143
(cd $HOME && ${PYBIN}/python -c 'import itk; image = itk.Image[itk.UC, 2].New()')
149144
(cd $HOME && ${PYBIN}/python -c 'import itkConfig; itkConfig.LazyLoading = False; import itk;')

scripts/macpython-build-wheels.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,8 @@ ${DELOCATE_WHEEL} ${SCRIPT_DIR}/../dist/*.whl # copies library dependencies into
167167

168168
# Install packages and test
169169
for VENV in "${VENVS[@]}"; do
170-
if [[ ${SINGLE_WHEEL} == 1 ]]; then
171-
package="itk"
172-
else
173-
package="itk-meta"
174-
fi
175-
${VENV}/bin/pip install ${package} --no-cache-dir --no-index -f ${SCRIPT_DIR}/../dist
176170
${VENV}/bin/pip install numpy
171+
${VENV}/bin/pip install itk --no-cache-dir --no-index -f ${SCRIPT_DIR}/../dist
177172
(cd $HOME && ${VENV}/bin/python -c 'import itk;')
178173
(cd $HOME && ${VENV}/bin/python -c 'import itk; image = itk.Image[itk.UC, 2].New()')
179174
(cd $HOME && ${VENV}/bin/python -c 'import itkConfig; itkConfig.LazyLoading = False; import itk;')

scripts/setup_py_configure.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ def update_wheel_setup_py_parameters():
139139
params['SETUP_GENERATOR'] = "python %s '%s'" % (SCRIPT_NAME, wheel_name)
140140

141141
# name
142-
params['SETUP_NAME'] = wheel_name
142+
if wheel_name == 'itk-meta':
143+
params['SETUP_NAME'] = 'itk'
144+
else:
145+
params['SETUP_NAME'] = wheel_name
143146

144147
# cmake_args
145148
params['SETUP_CMAKE_ARGS'] = list_to_str([
@@ -184,6 +187,7 @@ def get_wheel_dependencies():
184187
wheel_name for wheel_name in get_wheel_names()
185188
if wheel_name != 'itk-meta'
186189
]
190+
all_depends['itk-meta'].append('numpy')
187191
return all_depends
188192

189193

0 commit comments

Comments
 (0)