Skip to content

Commit

Permalink
fix/add dynamic detection of hdf5 with batch script
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Sep 21, 2017
1 parent 4135f5c commit 21c57d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
SETLOCAL EnableDelayedExpansion

pushd %PREFIX%\conda-meta\
for %%g in (hdf5*.json) do (set JSON_FILE=%%~g)
popd

for /f "tokens=2 delims=-" %%i in ("%JSON_FILE%") do (set HDF5_VER=%%i)

:: hdf5 env var provided by conda-build 3 variant
python setup.py configure --hdf5="%LIBRARY_PREFIX%" --hdf5-version=%hdf5%
python setup.py configure --hdf5="%LIBRARY_PREFIX%" --hdf5-version=%HDF5_VER%
if errorlevel 1 exit 1

python setup.py install --single-version-externally-managed --record record.txt
Expand Down

0 comments on commit 21c57d5

Please sign in to comment.