-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conda: add Windows support for pygit2 and libgit2 packages
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set LIBGIT2=%PREFIX% | ||
set VS100COMNTOOLS=%VS120COMNTOOLS% | ||
%PYTHON% setup.py install |