-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from abergeron/better_conda
Better conda
- Loading branch information
Showing
13 changed files
with
2,406 additions
and
71 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 |
---|---|---|
@@ -1,45 +1,47 @@ | ||
version: '0.7.0.{build}' | ||
version: '1.0.{build}' # This number doesn't matter | ||
|
||
pull_requests: | ||
do_not_increment_build_number: true | ||
|
||
image: Visual Studio 2015 | ||
|
||
init: | ||
- git config --global core.autocrlf input | ||
- cmd: cmake --version | ||
- cmd: msbuild /version | ||
|
||
platform: | ||
- x64 | ||
|
||
image: Visual Studio 2015 | ||
|
||
clone_folder: C:\projects\libgpuarray | ||
|
||
configuration: | ||
- Release | ||
- Debug | ||
|
||
environment: | ||
matrix: | ||
- PYTHON: "C:\\Python27" | ||
VS_PATH: "C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0" | ||
- PYTHON: "C:\\Python35" | ||
VS_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC" | ||
- CONDA_LOC: "C:\\Miniconda-x64" | ||
- CONDA_LOC: "C:\\Miniconda35-x64" | ||
|
||
install: | ||
- python -m pip install mako cython | ||
|
||
build_script: | ||
- echo "Python:" "%PYTHON%" | ||
- echo "Config:" "%CONFIGURATION%" | ||
- echo "VS path:" "%VS_PATH%" | ||
- cd "%VS_PATH%" | ||
- vcvarsall x64 | ||
- set | ||
- cd C:\projects\libgpuarray | ||
- md %CONFIGURATION% | ||
- cd %CONFIGURATION% | ||
- cmake .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "NMake Makefiles" | ||
- cmake --build . --config %CONFIGURATION% | ||
|
||
build: script | ||
# This breaks conda-build because of git | ||
- cmd: rmdir C:\cygwin /s /q | ||
- cmd: call %CONDA_LOC%\Scripts\activate.bat | ||
- cmd: set PYTHONUNBUFFERED=1 | ||
- cmd: conda install -n root --yes conda conda-env conda-build anaconda-client | ||
# We borrow a trick from conda-forge to fix the VS2008 compiler | ||
- cmd: conda config --append channels conda-forge | ||
- cmd: conda install --yes vs2008_express_vc_python_patch | ||
- cmd: call setup_x64 | ||
|
||
build: off | ||
|
||
test_script: | ||
- cmd: for /f "tokens=*" %%i in ('python -c "import versioneer; print(versioneer.get_version())"') do set GPUARRAY_VERSION=%%i | ||
- cmd: conda build conda | ||
- cmd: mkdir pkgs | ||
- cmd: xcopy "%CONDA_LOC%"\conda-bld\win-64\pygpu* pkgs\ /Y | ||
- cmd: xcopy "%CONDA_LOC%"\conda-bld\win-64\libgpuarray* pkgs\ /Y | ||
|
||
artifacts: | ||
- path: pkgs/* | ||
name: "Conda Packages" | ||
|
||
#deploy: | ||
# on: | ||
# appveyor_repo_tag: true |
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 @@ | ||
pygpu/_version.py export-subst |
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,2 @@ | ||
include versioneer.py | ||
include pygpu/_version.py |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
cmake -G"NMake Makefiles" ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
cmake -G "%CMAKE_GENERATOR%" ^ | ||
-DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^ | ||
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^ | ||
-DCMAKE_C_FLAGS="-I%LIBRARY_PREFIX%\include" ^ | ||
"%SRC_DIR%" | ||
if errorlevel 1 exit 1 | ||
cmake --build . --config Release --target ALL_BUILD | ||
cmake --build . --config Release --target install | ||
if errorlevel 1 exit 1 | ||
cmake --build . --config Release --target install | ||
if errorlevel 1 exit 1 |
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
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
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
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
Oops, something went wrong.