Skip to content

Commit

Permalink
BUG: Migrate midas3.kitware.com to data.kitware.com
Browse files Browse the repository at this point in the history
midas3.kitware.com is deprecated.

Change-Id: Iba445e27b6c0f136cc6c5a361c088075dfa1facb
  • Loading branch information
thewtex committed Jun 6, 2018
1 parent 32608b6 commit 716fe07
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 35 deletions.
3 changes: 0 additions & 3 deletions CMake/ITKExternalData.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ if(NOT ITK_FORBID_DOWNLOADS)
# Data published on Girder
"https://data.kitware.com:443/api/v1/file/hashsum/%(algo)/%(hash)/download"

# Data published on MIDAS
"https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=%(hash)&algorithm=%(algo)"

# Data published by developers using git-gerrit-push.
"https://itk.org/files/ExternalData/%(algo)/%(hash)"

Expand Down
8 changes: 4 additions & 4 deletions CMake/itkExternal_FFTW.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ else()
endif()

set(_fftw_target_version 3.3.4)
set(_fftw_url_md5 "2edab8c06b24feeb3b82bbb3ebf3e7b3")
set(_fftw_url "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${_fftw_url_md5}&name=fftw-${_fftw_target_version}.tar.gz")
set(_fftw_url_hash "1ee2c7bec3657f6846e63c6dfa71410563830d2b951966bf0123bd8f4f2f5d6b50f13b76d9a7b0eae70e44856f829ca6ceb3d080bb01649d1572c9f3f68e8eb1")
set(_fftw_url "https://data.kitware.com/api/v1/file/hashsum/sha512/${_fftw_url_hash}/download")

if(ITK_USE_FFTWF)
itk_download_attempt_check(FFTW)
ExternalProject_add(fftwf
PREFIX fftwf
URL "${_fftw_url}"
URL_MD5 "${_fftw_url_md5}"
URL_HASH SHA512="${_fftw_url_hash}"
DOWNLOAD_NAME "fftw-${_fftw_target_version}.tar.gz"
CONFIGURE_COMMAND
env
Expand Down Expand Up @@ -118,7 +118,7 @@ else()
ExternalProject_add(fftwd
PREFIX fftwd
URL "${_fftw_url}"
URL_MD5 "${_fftw_url_md5}"
URL_HASH SHA512="${_fftw_url_hash}"
DOWNLOAD_NAME "fftw-${_fftw_target_version}.tar.gz"
CONFIGURE_COMMAND
env
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Run the scripts
```

to upload the testing data from a local store on the ITK
https://midas3.kitware.com/midas/ and http://slicer.kitware.com/midas3/
http://slicer.kitware.com/midas3/
community. This script requires that pydas is installed.

Note: If you get the following error message:
Expand Down
4 changes: 2 additions & 2 deletions Utilities/Maintenance/JREUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
The Fiji fellows maintain Git repositories that tracks the OpenJDK JRE.
Here we clone that repository and create the JRE tarball from it.
Currently, the tarball needs to be uploaded manually to midas3.kitware.com.
In the future, pydas can be used for automatic upload.
Currently, the tarball needs to be uploaded manually to data.kitware.com.
In the future, the Python girder client can be used for automatic upload.
"""

from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion Utilities/Maintenance/SourceTarball.bash
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ download_object() {
algo="$1" ; hash="$2" ; path="$3"
mkdir -p $(dirname "$path") &&
if wget "https://www.itk.org/files/ExternalData/$algo/$hash" -O "$path.tmp$$" 1>&2 || \
wget "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${hash}&algorithm=${algo}" -O "$path.tmp$$" 1>&2; then
wget "https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=${hash}&algorithm=${algo}" -O "$path.tmp$$" 1>&2; then
mv "$path.tmp$$" "$path"
else
rm -f "$path.tmp$$"
Expand Down
27 changes: 13 additions & 14 deletions Wrapping/Generators/CastXML/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,22 @@ else()
# If 64 bit Linux build host, use the CastXML binary
if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")

set(_castxml_hash 84c2851a4df419b5834114bbfafa8d3e)
set(_castxml_url "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${_castxml_hash}&name=castxml-linux.tar.gz")
set(_castxml_hash 1e0f51ab98592ac9934bb1c93040fd473519a02d1e3ce0090443f4f3566eb8354eb3e5bd04a2c91d832d33d0d712363c508bd2304da34db9963787890808ec9e)
set(_castxml_url "https://data.kitware.com/api/v1/file/hashsum/sha512/${_castxml_hash}/download")
set(_download_castxml_binaries 1)

# If 64 bit Windows build host, use the CastXML binary
elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Windows" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64")

set(_castxml_hash b862fcc384b496c0d9a39dea0386454a)
set(_castxml_url https://midas3.kitware.com/midas/download/bitstream/460537/castxml-windows.zip)
set(_castxml_url "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${_castxml_hash}&name=castxml-windows.zip")
set(_castxml_hash 1c379ea91f4c0d9b8127d841edee7c415fdde40665a2a3682aef22def75bd1cea99d26bb3b1b243e61e976d78233ed12a2614236e76206d1ae083583f4bc17ea)
set(_castxml_url "https://data.kitware.com/api/v1/file/hashsum/sha512/${_castxml_hash}/download")
set(_download_castxml_binaries 1)

# If 64 bit Mac OS X build host ( >= 10.9, Mavericks), use the CastXML binary
elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" AND (NOT CMAKE_HOST_SYSTEM_VERSION VERSION_LESS "13.0.0"))

set(_castxml_hash e784aa985f59f57f4d71339bd60e27a8)
set(_castxml_url "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${_castxml_hash}&name=castxml-macosx.tar.gz")
set(_castxml_hash 2fa32cd083ed901499774eb34249c70c2d32a93c55e27dbb62f5ec3c7386ab6745dbbad78c653a0909b05b5d965839ec31ad9fca294cc0b7af9dfc15e2a7e063)
set(_castxml_url "https://data.kitware.com/api/v1/file/hashsum/sha512/${_castxml_hash}/download")
set(_download_castxml_binaries 1)

endif()
Expand All @@ -53,7 +52,7 @@ else()
endif()
ExternalProject_Add(castxml
URL ${_castxml_url}
URL_MD5 ${_castxml_hash}
URL_HASH SHA512=${_castxml_hash}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_BINARY_DIR}/castxml-prefix/src/castxml" "${CMAKE_CURRENT_BINARY_DIR}/castxml"
Expand Down Expand Up @@ -98,10 +97,10 @@ else()
itk_download_attempt_check(Clang)
endif()
set(llvm_version 5.0.0)
set(llvm_md5 e3782305ff4a60ad9bbc3a926425786f)
set(llvm_hash a65412cb45c73f73fcdef8016d3538114c1d0d1c6a5ed030a20e5049a6582b7926f184f2a3c065550e92e8ac27743bbf1a87b76be85949c0114d0320264018bd)
ExternalProject_Add(llvm
URL https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${llvm_md5}&name=llvm-${llvm_version}.src.tar.gz
URL_MD5 ${llvm_md5}
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${llvm_hash}/download"
URL_HASH SHA512=${llvm_hash}
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/llvm-${llvm_version}
CMAKE_ARGS -Wno-dev
CMAKE_GENERATOR "${CMAKE_GENERATOR}"
Expand All @@ -115,13 +114,13 @@ else()
-DLLVM_INCLUDE_DOCS:BOOL=OFF
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/llvm
)
set(clang_md5 79eddb9b1f6e6ee8e9eeff1245d3f359)
set(clang_hash f4d46cb0e76b84d8270da7bc62927c6c3acfa42cf9982012842f5e56b4b846ca4fc6ddb1ed6370cc5b6cd224c0dc420a7f3550d867855c23bcc20a3a3ee2d1bc)
ExternalProject_Add(clang
# This is the upstream source code repackages in a .tar.gz for
# compatibility with older CMake. Also the tests/ and doc/ directories
# are removed to remove symlink files and save space.
URL https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${clang_md5}&name=cfe-${llvm_version}.src.tar.gz
URL_MD5 ${clang_md5}
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${clang_hash}/download"
URL_HASH SHA512=${clang_hash}
DEPENDS llvm
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/cfe-${llvm_version}
CMAKE_ARGS -Wno-dev
Expand Down
19 changes: 9 additions & 10 deletions Wrapping/Generators/SwigInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ mark_as_advanced(ITK_USE_SYSTEM_SWIG)
set(swig_version_min 3.0.0)

set(ITK_SWIG_VERSION 3.0.12)
set(swig_md5 "82133dfa7bba75ff9ad98a7046be687c")
set(swigwin_md5 "a49524dad2c91ae1920974e7062bfc93")
set(swig_hash "85605bd98bf2b56f5bfca23ae23d76d764d76a174b05836c8686825e912d6326c370e9cf2134c0bf4f425560be103b16bf9c9d075077f52e713a69082616e906")
set(swigwin_hash "90734503b9c3cd54c3351182d116d100fdcb379fe2e4a510264f81f1e07d5035c778416c665b1fbeeeea56e8aec55af27c53c7f4b082ff54d4fc3a6c0cd382a8")

if(WIN32)
set(swig_ep "${CMAKE_CURRENT_BINARY_DIR}/swigwin-${ITK_SWIG_VERSION}/swig.exe")
Expand Down Expand Up @@ -64,8 +64,8 @@ else()
itk_download_attempt_check(SWIG)
endif()
ExternalProject_Add(swig
URL "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${swigwin_md5}&name=swigwin-${ITK_SWIG_VERSION}.zip"
URL_MD5 ${swigwin_md5}
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${swigwin_hash}/download"
URL_HASH SHA512=${swigwin_hash}
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/swigwin-${SWIG_VERSION}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down Expand Up @@ -138,11 +138,10 @@ else()
install
)
endif()
set(pcre_md5 890c808122bd90f398e6bc40ec862102)
set(pcre_version 8.40)
set(pcre_hash f919957ce6e1f52b5579faa7fccfe192944884dc56ad831ebb3e3787f752fe2f14567fe302d884fa86900018e92b758e4589406f7e8d7af1baa2a1d6add40865)
ExternalProject_Add(PCRE
URL "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${pcre_md5}&name=pcre-${pcre_version}.tar.gz"
URL_MD5 ${pcre_md5}
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${pcre_hash}/download"
URL_HASH SHA512=${pcre_hash}
CONFIGURE_COMMAND
${pcre_env}
../PCRE/configure
Expand Down Expand Up @@ -242,8 +241,8 @@ message(STATUS \"Swig configure successfully completed.\")
endif()

ExternalProject_Add(swig
URL "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=${swig_md5}&name=swig-${ITK_SWIG_VERSION}.tar.gz"
URL_MD5 ${swig_md5}
URL "https://data.kitware.com/api/v1/file/hashsum/sha512/${swig_hash}/download"
URL_HASH SHA512=${swig_hash}
CONFIGURE_COMMAND
${extra_swig_configure_env} ${CMAKE_COMMAND} -P "${_swig_configure_script}"
${extra_external_project_commands}
Expand Down

0 comments on commit 716fe07

Please sign in to comment.