Skip to content

Commit

Permalink
Simplify appveyor build using PyPackaging instructiosn.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Dec 2, 2016
1 parent 6cc56f0 commit 19f1c87
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
23 changes: 6 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,14 @@ environment:
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\appveyor\\run_with_env.cmd"
matrix:
- PYTHON: "C:\\Python35_64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
CONDA_PY: "35"
CONDA_NPY: "111"
- PYTHON: "C:\\Python35-x64"

install:
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
# as well as pip, conda-build, and the binstar CLI
- powershell .\\ci\\appveyor\\install.ps1
- "SET PATH=%PYTHON%\\Scripts;%PYTHON%;%PATH%"
- "%CMD_IN_ENV% python --version"
- "%CMD_IN_ENV% conda update -q conda"
- "%CMD_IN_ENV% conda install conda-build anaconda-client"
- "%CMD_IN_ENV% conda install --yes numpy scipy matplotlib"
- "%CMD_IN_ENV% conda install --yes --channel matsci spglib"
- "%CMD_IN_ENV% pip install -r requirements.txt"
- "%CMD_IN_ENV% pip install pybtex nose sympy unittest2 coverage ase coveralls"
- "%CMD_IN_ENV% python setup.py develop"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install numpy scipy"
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
- "%PYTHON%\\python.exe -m pip install pybtex nose sympy unittest2 coverage ase coveralls"
- "build.cmd %PYTHON%\\python.exe setup.py develop"

build: false

Expand Down
21 changes: 21 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
:: To build extensions for 64 bit Python 3, we need to configure environment
:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
:: MS Windows SDK for Windows 7 and .NET Framework 4
::
:: More details at:
:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows

IF "%DISTUTILS_USE_SDK%"=="1" (
ECHO Configuring environment to build with MSVC on a 64bit architecture
ECHO Using Windows SDK 7.1
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
SET MSSdk=1
REM Need the following to allow tox to see the SDK compiler
SET TOX_TESTENV_PASSENV=DISTUTILS_USE_SDK MSSdk INCLUDE LIB
) ELSE (
ECHO Using default MSVC build environment
)

CALL %*

0 comments on commit 19f1c87

Please sign in to comment.