File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ build_script:
19
19
- conda config --set always_yes yes
20
20
- conda update conda --quiet
21
21
- conda install numpy cython nose pandas --quiet
22
- - pip install . -vvv
22
+ - python setup.py develop
23
23
- set "GIT_DIR=%cd%"
24
24
25
25
test_script :
26
26
- cd ..
27
- - python -c "import randomstate.prng.dsfmt as d;d.RandomState(1)"
28
- - nosetests -vv randomstate
27
+ - nosetests randomstate
29
28
30
29
on_success :
31
30
- cd %GIT_DIR%\randomstate
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
import sys
4
4
from os .path import join
5
5
import subprocess
6
+ import struct
6
7
7
8
import numpy
8
9
from Cython .Build import cythonize
21
22
22
23
compile_rngs = rngs [:]
23
24
24
- extra_defs = []
25
+ extra_defs = [( '_CRT_SECURE_NO_WARNINGS' , '1' )] if os . name == 'nt' else [ ]
25
26
extra_link_args = ['Advapi32.lib' , 'Kernel32.lib' ] if os .name == 'nt' else []
26
27
base_extra_compile_args = [] if os .name == 'nt' else ['-std=c99' ]
27
28
if USE_SSE2 :
28
29
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' ]
30
33
else :
31
34
base_extra_compile_args += ['-msse2' ]
32
35
You can’t perform that action at this time.
0 commit comments