Skip to content

Commit 0ccf1c9

Browse files
Merge pull request #111 from jeromekelleher/windows-build
Enable Python compiles on Windows.
2 parents 590d1b7 + c6e56b2 commit 0ccf1c9

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

appveyor.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
environment:
22
matrix:
33
# Disabling Py36 x64. Some weird problem with h5py. See github.com/tskit-dev/msprime/issues/678
4-
# - PYTHON: "C:\\Miniconda36-x64"
5-
# - PYTHON: "C:\\Miniconda37"
64
# Disabling Py37. See https://github.com/tskit-dev/msprime/issues/653
7-
#- PYTHON: "C:\\Miniconda37-x64"
8-
- PYTHON: "C:\\Miniconda36"
5+
- PYTHON: "C:\\Miniconda36-x64"
6+
# JK: Disabling all of these because conda doesn't seem top be working properly.
7+
# When we're on the other versions we always go back to Python36.
8+
# - PYTHON: "C:\\Miniconda37"
9+
# - PYTHON: "C:\\Miniconda37-x64"
10+
# - PYTHON: "C:\\Miniconda36"
11+
12+
init:
13+
- cmd: ECHO Using %PYTHON%
914

1015
install:
11-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
16+
- cmd: SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
17+
- cmd: git submodule update --init --recursive
18+
# We have symlinks in the repo, which need to be treated specially on Windows.
19+
- cmd: git config core.symlinks true
20+
- cmd: git reset --hard
21+
- cmd: conda config --add channels conda-forge
22+
- cmd: conda install --yes --file=python\requirements\conda-minimal.txt
23+
- cmd: conda info -a
24+
1225

1326
# NOTE attempted to get meson to work here and it was almost working except
1427
# for linking against the Advapi32 for the random bytes extension. Might be
@@ -19,11 +32,7 @@ install:
1932
# - cmd: set PATH=%cd%;C:\ninja-build;%PATH%
2033
# - cmd: pip install meson
2134

22-
build_script:
23-
- cmd: git submodule update --init --recursive
24-
# # We have symlinks in the repo, which need to be treated specially on Windows.
25-
- cmd: git config core.symlinks true
26-
- cmd: git reset --hard
35+
# build_script:
2736
# - cmd: meson builddir c
2837
# - cmd: cd builddir
2938
# - cmd: meson configure
@@ -33,10 +42,10 @@ build_script:
3342
# test_script:
3443
# - cmd: ninja -C builddir test
3544

45+
build_script:
46+
- cmd: cd python"
47+
- cmd: python setup.py build_ext --inplace
3648

37-
# test_script:
38-
# - "conda config --add channels conda-forge"
39-
# - "conda install --yes --file=python/requirements/conda-minimal.txt"
4049
# - "pip install kastore"
4150
# - "pip install PyVCF"
4251
# - "pip install newick"
@@ -50,10 +59,7 @@ build_script:
5059
# - "conda install --yes gsl"
5160
# - "SET MSP_CONDA_PREFIX=%PYTHON%"
5261
# - "pip install --user git+https://github.com/tskit-dev/msprime"
62+
# - "nosetests -vs"
5363

54-
# - "cd python"
55-
# - "python setup.py build_ext --inplace"
56-
# - "nosetests -vs"
57-
58-
# after_test:
59-
# - "python setup.py bdist_wheel"
64+
after_test:
65+
- cmd: python setup.py bdist_wheel

0 commit comments

Comments
 (0)