Skip to content

Commit 1232353

Browse files
committed
Merge branch 'master' into release
2 parents 8dabb66 + f4fe838 commit 1232353

15 files changed

+34
-24
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ libpython-not-needed-symbols-exported-by-interpreter
1717
# C extensions
1818
*.so
1919

20+
# macOS
21+
.DS_Store
22+
2023
# Packages
2124
*.egg
2225
*.eggs

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ if(ITKPythonPackage_SUPERBUILD)
7373
include(ExternalProject)
7474

7575
set(ITK_REPOSITORY "https://github.com/InsightSoftwareConsortium/ITK.git")
76-
# ITK nightly-master 2018-05-25
77-
set(ITK_GIT_TAG "v5.0a02")
76+
# ITK nightly-master 2018-09-05
77+
set(ITK_GIT_TAG "f5e254b")
7878

7979
#-----------------------------------------------------------------------------
8080
# A separate project is used to download ITK, so that it can reused
@@ -423,7 +423,7 @@ else()
423423
set(wheel_group_display ${wheel_group})
424424

425425
# XXX Hard-coded dispatch
426-
if(module STREQUAL "BridgeNumPy")
426+
if(module STREQUAL "ITKBridgeNumPy")
427427
set(new_wheel_group "Core")
428428
set(wheel_group_display "${new_wheel_group} (was ${wheel_group})")
429429
set(wheel_group ${new_wheel_group})

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ To install the stable ITK Python package::
1414
The Python packages are built daily. To install the latest build from the ITK
1515
Git *master* branch::
1616

17-
python -m pip install --upgrade pip
18-
python -m pip install itk --no-index \
17+
python -m pip install --upgrade pip numpy
18+
python -m pip install itk --upgrade --no-index \
1919
-f https://github.com/InsightSoftwareConsortium/ITKPythonPackage/releases/tag/latest
2020

2121

itkVersion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '5.0a2'
1+
VERSION = '5.0a02.dev20180905+392.gf5e254b'
22

33
def get_versions():
44
"""Returns versions for the ITK Python package.

scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ wget -L https://data.kitware.com/api/v1/file/592dd8068d777f16d01e1a92/download -
77
gunzip -d zstd-1.2.0-linux.tar.gz
88
tar xf zstd-1.2.0-linux.tar
99

10-
curl -L https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.0a01}/ITKPythonBuilds-linux.tar.zst -O
10+
curl -L https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.0a02}/ITKPythonBuilds-linux.tar.zst -O
1111
./zstd-1.2.0-linux/bin/unzstd ITKPythonBuilds-linux.tar.zst -o ITKPythonBuilds-linux.tar
1212
tar xf ITKPythonBuilds-linux.tar
1313

scripts/internal/manylinux-build-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ $# -eq 0 ]]; then
1010
PYBIN=(/opt/python/*/bin)
1111
PYBINARIES=()
1212
for version in "${PYBIN[@]}"; do
13-
if [[ ${version} == *"cp27"* || ${version} == *"cp35"* || ${version} == *"cp36"* ]]; then
13+
if [[ ${version} == *"cp27"* || ${version} == *"cp35"* || ${version} == *"cp36"* || ${version} == *"cp37"* ]]; then
1414
PYBINARIES+=(${version})
1515
fi
1616
done

scripts/internal/manylinux-build-wheels.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SINGLE_WHEEL=0
2828

2929
# Compile wheels re-using standalone project and archive cache
3030
for PYBIN in "${PYBINARIES[@]}"; do
31-
PYTHON_EXECUTABLE=${PYBIN}/python
31+
export PYTHON_EXECUTABLE=${PYBIN}/python
3232
PYTHON_INCLUDE_DIR=$( find -L ${PYBIN}/../include/ -name Python.h -exec dirname {} \; )
3333

3434
echo ""
@@ -43,6 +43,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
4343
source_path=/work/standalone-${ARCH}-build/ITK-source
4444
build_path=/work/ITK-$(basename $(dirname ${PYBIN}))-manylinux1_${ARCH}
4545
SETUP_PY_CONFIGURE="${script_dir}/../setup_py_configure.py"
46+
SKBUILD_CMAKE_INSTALL_PREFIX=$(${PYTHON_EXECUTABLE} -c "from skbuild.constants import CMAKE_INSTALL_DIR; print(CMAKE_INSTALL_DIR)")
4647

4748
# Clean up previous invocations
4849
rm -rf ${build_path}
@@ -93,7 +94,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
9394
-DWRAP_ITK_INSTALL_COMPONENT_IDENTIFIER:STRING=PythonWheel \
9495
-DWRAP_ITK_INSTALL_COMPONENT_PER_MODULE:BOOL=ON \
9596
-DITK_WRAP_unsigned_short:BOOL=ON \
96-
-DPY_SITE_PACKAGES_PATH:PATH=${script_dir}/../../_skbuild/cmake-install \
97+
-DPY_SITE_PACKAGES_PATH:PATH="." \
9798
-DITK_LEGACY_SILENT:BOOL=ON \
9899
-DITK_WRAP_PYTHON:BOOL=ON \
99100
-DITK_WRAP_PYTHON_LEGACY:BOOL=OFF \
@@ -143,8 +144,8 @@ done
143144

144145
# Install packages and test
145146
for PYBIN in "${PYBINARIES[@]}"; do
146-
${PYBIN}/pip install numpy
147-
${PYBIN}/pip install itk --no-cache-dir --no-index -f /work/dist
147+
${PYBIN}/pip install --user numpy
148+
${PYBIN}/pip install itk --user --no-cache-dir --no-index -f /work/dist
148149
(cd $HOME && ${PYBIN}/python -c 'from itk import ITKCommon;')
149150
(cd $HOME && ${PYBIN}/python -c 'import itk; image = itk.Image[itk.UC, 2].New()')
150151
(cd $HOME && ${PYBIN}/python -c 'import itkConfig; itkConfig.LazyLoading = False; import itk;')

scripts/internal/windows_build_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from subprocess import check_call
44
import os
55

6-
DEFAULT_PY_ENVS = ["35-x64", "36-x64"]
6+
DEFAULT_PY_ENVS = ["35-x64", "36-x64", "37-x64"]
77

88
SCRIPT_DIR = os.path.dirname(__file__)
99
ROOT_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "..", ".."))

scripts/macpython-build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ SINGLE_WHEEL=0
6363
# Compile wheels re-using standalone project and archive cache
6464
for VENV in "${VENVS[@]}"; do
6565
py_mm=$(basename ${VENV})
66-
PYTHON_EXECUTABLE=${VENV}/bin/python
66+
export PYTHON_EXECUTABLE=${VENV}/bin/python
6767
PYTHON_INCLUDE_DIR=$( find -L ${MACPYTHON_PY_PREFIX}/${py_mm}/include -name Python.h -exec dirname {} \; )
6868

6969
echo ""
@@ -130,7 +130,7 @@ for VENV in "${VENVS[@]}"; do
130130
-DPYTHON_LIBRARY:FILEPATH=${PYTHON_LIBRARY} \
131131
-DWRAP_ITK_INSTALL_COMPONENT_IDENTIFIER:STRING=PythonWheel \
132132
-DWRAP_ITK_INSTALL_COMPONENT_PER_MODULE:BOOL=ON \
133-
-DPY_SITE_PACKAGES_PATH:PATH=${SCRIPT_DIR}/../_skbuild/cmake-install \
133+
"-DPY_SITE_PACKAGES_PATH:PATH=." \
134134
-DITK_LEGACY_SILENT:BOOL=ON \
135135
-DITK_WRAP_PYTHON:BOOL=ON \
136136
-DITK_WRAP_PYTHON_LEGACY:BOOL=OFF \

scripts/macpython-download-cache-and-build-module-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
brew update
77
brew install zstd aria2 gnu-tar doxygen
88
brew upgrade cmake
9-
aria2c -c --file-allocation=none -o ITKPythonBuilds-macosx.tar.zst -s 10 -x 10 https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.0a01}/ITKPythonBuilds-macosx.tar.zst
9+
aria2c -c --file-allocation=none -o ITKPythonBuilds-macosx.tar.zst -s 10 -x 10 https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.0a02}/ITKPythonBuilds-macosx.tar.zst
1010
unzstd ITKPythonBuilds-macosx.tar.zst -o ITKPythonBuilds-macosx.tar
1111
PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
1212
tar xf ITKPythonBuilds-macosx.tar --checkpoint=10000 --checkpoint-action=dot

0 commit comments

Comments
 (0)