Skip to content

Commit 772c301

Browse files
Sheppard, KevinSheppard, Kevin
authored andcommitted
TST: Improve appveyor build
Use setup to build and install rather than pip to improve output
1 parent fedec33 commit 772c301

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

appveyor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ build_script:
1919
- conda config --set always_yes yes
2020
- conda update conda --quiet
2121
- conda install numpy cython nose pandas --quiet
22-
- pip install . -vvv
22+
- python setup.py develop
2323
- set "GIT_DIR=%cd%"
2424

2525
test_script:
2626
- cd ..
27-
- python -c "import randomstate.prng.dsfmt as d;d.RandomState(1)"
28-
- nosetests -vv randomstate
27+
- nosetests randomstate
2928

3029
on_success:
3130
- cd %GIT_DIR%\randomstate

compute_mod3.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44
from os.path import join
55
import subprocess
6+
import struct
67

78
import numpy
89
from Cython.Build import cythonize
@@ -21,12 +22,14 @@
2122

2223
compile_rngs = rngs[:]
2324

24-
extra_defs = []
25+
extra_defs = [('_CRT_SECURE_NO_WARNINGS','1')] if os.name == 'nt' else []
2526
extra_link_args = ['Advapi32.lib', 'Kernel32.lib'] if os.name == 'nt' else []
2627
base_extra_compile_args = [] if os.name == 'nt' else ['-std=c99']
2728
if USE_SSE2:
2829
if os.name == 'nt':
29-
base_extra_compile_args += ['/arch:SSE2']
30+
base_extra_compile_args += ['/wd4146']
31+
if struct.calcsize('P') < 8:
32+
base_extra_compile_args += ['/arch:SSE2']
3033
else:
3134
base_extra_compile_args += ['-msse2']
3235

0 commit comments

Comments
 (0)