From 80805407bf0d78dcd86f7499c08d04425e16c76c Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Tue, 11 Aug 2015 16:44:22 +0200 Subject: [PATCH] conda: add Windows support for pygit2 and libgit2 packages --- conda/libgit2/bld.bat | 20 ++++++++++++++++++++ conda/pygit2/bld.bat | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 conda/libgit2/bld.bat create mode 100644 conda/pygit2/bld.bat diff --git a/conda/libgit2/bld.bat b/conda/libgit2/bld.bat new file mode 100644 index 000000000..c385a825c --- /dev/null +++ b/conda/libgit2/bld.bat @@ -0,0 +1,20 @@ +mkdir build +cd build +REM Configure step +if "%ARCH%"=="32" ( +set CMAKE_GENERATOR=Visual Studio 12 2013 +) else ( +set CMAKE_GENERATOR=Visual Studio 12 2013 Win64 +) +set CMAKE_GENERATOR_TOOLSET=v120_xp +cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%PREFIX% -DSTDCALL=OFF %SRC_DIR% +if errorlevel 1 exit 1 +REM Build step +cmake --build . +if errorlevel 1 exit 1 +REM Install step +cmake --build . --target install +if errorlevel 1 exit 1 +REM Hack to help pygit2 to find libgit2 +mkdir %PREFIX%\Scripts +copy "%PREFIX%\bin\git2.dll" "%PREFIX%\Scripts\" \ No newline at end of file diff --git a/conda/pygit2/bld.bat b/conda/pygit2/bld.bat new file mode 100644 index 000000000..0b9010888 --- /dev/null +++ b/conda/pygit2/bld.bat @@ -0,0 +1,3 @@ +set LIBGIT2=%PREFIX% +set VS100COMNTOOLS=%VS120COMNTOOLS% +%PYTHON% setup.py install \ No newline at end of file