Skip to content

Commit 8080540

Browse files
committedAug 11, 2015
conda: add Windows support for pygit2 and libgit2 packages
1 parent 075bf33 commit 8080540

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
 

Diff for: ‎conda/libgit2/bld.bat

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
mkdir build
2+
cd build
3+
REM Configure step
4+
if "%ARCH%"=="32" (
5+
set CMAKE_GENERATOR=Visual Studio 12 2013
6+
) else (
7+
set CMAKE_GENERATOR=Visual Studio 12 2013 Win64
8+
)
9+
set CMAKE_GENERATOR_TOOLSET=v120_xp
10+
cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%PREFIX% -DSTDCALL=OFF %SRC_DIR%
11+
if errorlevel 1 exit 1
12+
REM Build step
13+
cmake --build .
14+
if errorlevel 1 exit 1
15+
REM Install step
16+
cmake --build . --target install
17+
if errorlevel 1 exit 1
18+
REM Hack to help pygit2 to find libgit2
19+
mkdir %PREFIX%\Scripts
20+
copy "%PREFIX%\bin\git2.dll" "%PREFIX%\Scripts\"

Diff for: ‎conda/pygit2/bld.bat

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set LIBGIT2=%PREFIX%
2+
set VS100COMNTOOLS=%VS120COMNTOOLS%
3+
%PYTHON% setup.py install

0 commit comments

Comments
 (0)
Please sign in to comment.