Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Windows #44

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d35654e
Readd support for window executables
montefra Aug 17, 2016
950b5a1
Re-add windows support
montefra Sep 14, 2016
98a3e29
Merge branch 'master' into windows
montefra Oct 23, 2016
286579d
try to make window run configure
montefra Oct 23, 2016
12342b9
look for windows in the same way as in the setup
montefra Oct 23, 2016
53fb87e
astropy-helpers build *so also on mac
montefra Oct 23, 2016
ff82d6c
it seems that windows requires the shell
montefra Oct 23, 2016
90cc0cc
there is no need to use shell
montefra Oct 24, 2016
5f02542
update xpa/config.guess
montefra Oct 24, 2016
32470a7
update also xpa/config.sub
montefra Oct 24, 2016
52a26f4
Merge remote-tracking branch 'upstream/master' into windows
montefra Oct 24, 2016
124e09c
add explicit notifications, install ds9
montefra Oct 24, 2016
e23e55c
No astroconda channel for windows
montefra Oct 24, 2016
b798f5f
dont use Wno-declaration-after-statement on windows
montefra Oct 24, 2016
73eef1c
dont use Wno* options in windows
montefra Oct 24, 2016
ae97577
Trying to get cygwin (I hope ...)
montefra Oct 24, 2016
c020aea
update according to astropy, remove cygwin
montefra Oct 24, 2016
29ab0df
fix indent
montefra Oct 24, 2016
7e34096
try to get cygwin as described in http://help.appveyor.com/discussion…
montefra Oct 24, 2016
ebd6a3f
correctly use cygwin64 path
montefra Oct 25, 2016
f5ea054
try using other command line options
montefra Oct 25, 2016
4ce2599
how does one start cygwin on appveyor???
montefra Oct 25, 2016
4644591
try to add cygwin bin to path
montefra Oct 25, 2016
caa5ca2
try to get rid of command in env
montefra Oct 25, 2016
3c4a046
try custom installation
montefra Oct 25, 2016
384b9d7
get back cmd_in_env
montefra Oct 25, 2016
319f8b3
try to set CC explicitly
montefra Oct 25, 2016
91aeb8c
ls into Cygwin and set CC in the environment
montefra Oct 25, 2016
fcde9f6
the executable is gcc.exe
montefra Oct 25, 2016
dc97483
try building as in http://tomassetti.me/continous-integration-on-linu…
montefra Oct 26, 2016
7a31060
start simple with the new things
montefra Oct 26, 2016
092071c
try to install astropy, numpy and cython with pip
montefra Oct 26, 2016
5d4ab3c
Add python to the path
montefra Oct 26, 2016
44edb6f
Add CMD_IN_ENV and clone astropy/ci-helpers
montefra Oct 26, 2016
f6f1fa5
Reset original astropy appveyor and try to start from there
montefra Oct 27, 2016
e8e1a5b
Compile with 32 bit architecture first
montefra Oct 27, 2016
9942fe2
Make sure to use x86 platform
montefra Oct 27, 2016
826c59e
Get the mingw content
montefra Oct 27, 2016
1a72484
why slash/backslash is so annoying in windows???
montefra Oct 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 47 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,62 @@

environment:

global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
# For this package-template, we include examples of Cython modules,
# so Cython is required for testing. If your package does not include
# Cython code, you can set CONDA_DEPENDENCIES=''
CONDA_DEPENDENCIES: "Cython"

matrix:

# We test Python 2.7 and 3.5 because 2.7 is the supported Python 2
# release of Astropy and Python 3.5 is the latest Python 3 release.

- PYTHON_VERSION: "2.7"
ASTROPY_VERSION: "stable"
NUMPY_VERSION: "stable"

- PYTHON_VERSION: "3.5"
ASTROPY_VERSION: "stable"
NUMPY_VERSION: "stable"

platform:
-x64
global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
# PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
# For this package-template, we include examples of Cython modules,
# so Cython is required for testing. If your package does not include
# Cython code, you can set CONDA_DEPENDENCIES=''
CONDA_DEPENDENCIES: "Cython" # ds9"
# CONDA_CHANNELS: 'http://ssb.stsci.edu/astroconda'
# Compilation flags

matrix:

# We test Python 2.7 and 3.5 because 2.7 is the supported Python 2
# release of Astropy and Python 3.5 is the latest Python 3 release.
- PYTHON_VERSION: "2.7"
ASTROPY_VERSION: "stable"
NUMPY_VERSION: "stable"
PLATFORM: "x86"
PYTHON_ARCH: "32"
CC: i686-w64-mingw32-gcc
AR: i686-w64-mingw32-ar
- PYTHON_VERSION: "3.5"
ASTROPY_VERSION: "stable"
NUMPY_VERSION: "stable"

matrix:
fast_finish: true

# platform:
# - x86
# - x64

# This apparently works on astropy but not here. How is it possible??
# os: Visual Studio 2015 Update 2

install:
- "git clone git://github.com/astropy/ci-helpers.git"
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "activate test"
- "ls C:/conda/envs/test/Library/mingw-w64/bin"

# Not a .NET project, we build the package in the install step instead
build: false

test_script:
- "%CMD_IN_ENV% python setup.py test"

notifications:
- provider: Email
to:
- [email protected]
on_build_success: false
on_build_failure: true
on_build_status_changed: true
Loading