@@ -6,32 +6,50 @@ environment:
6
6
# The list here is complete (excluding Python 2.6, which
7
7
# isn't covered by this document) at the time of writing.
8
8
- PYTHON : " C:\\ Python35"
9
+ PYVERSION : 35
9
10
BITS : 32
11
+ ARC : " win32"
10
12
- PYTHON : " C:\\ Python35-x64"
13
+ PYVERSION : 35
11
14
BITS : 64
15
+ ARC : " win_amd64"
12
16
- PYTHON : " C:\\ Python36"
17
+ PYVERSION : 36
13
18
BITS : 32
19
+ ARC : " win32"
14
20
- PYTHON : " C:\\ Python36-x64"
21
+ PYVERSION : 36
15
22
BITS : 64
23
+ ARC : " win_amd64"
16
24
- PYTHON : " C:\\ Python37"
25
+ PYVERSION : 37
17
26
BITS : 32
27
+ ARC : " win32"
18
28
- PYTHON : " C:\\ Python37-x64"
29
+ PYVERSION : 37
19
30
BITS : 64
31
+ ARC : " win_amd64"
20
32
21
33
install :
22
34
# We need wheel installed to build wheels
23
35
- IF "%BITS%" == "32" SET ARCH=i686
24
36
- IF "%BITS%" == "64" SET ARCH=x86_64
25
37
- curl -sSf -o rustup-init.exe https://win.rustup.rs
26
38
- rustup-init.exe --default-host "%ARCH%-pc-windows-gnu" --default-toolchain nightly -y
27
- - SET PATH=C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin
39
+ - SET PYTHONPATH=%PYTHON%;%PYTHON%\Scripts;
40
+ - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Lib;%PYTHON%\DLLs;%PYTHON%\Lib\lib-tk;C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin;
28
41
- rustc -Vv
29
42
- cargo -Vv
30
- - " %PYTHON%\\ python.exe -m pip install wheel"
31
- - pip install -r requirement-dev.txt --user
43
+ - python -V
44
+ - ls %PYTHON%\Scripts
45
+ - " %PYTHON%\\ python.exe -m pip install --upgrade pip"
46
+ - " %PYTHON%\\ python.exe -m pip install wheel setuptools-rust"
47
+ - " %PYTHON%\\ python.exe -m pip install -r requirement-dev.txt"
32
48
33
- build :
34
- - " build.cmd %PYTHON%\\ python.exe compile.py build"
49
+ build_script :
50
+ - " %PYTHON%\\ python.exe compile.py build"
51
+ - ls build\lib\py_sourcemap
52
+ - copy "build\\lib\\py_sourcemap\\py_sourcemap.cp%PYVERSION%-%ARC%.pyd" py_sourcemap\py_sourcemap.pyd
35
53
36
54
test_script :
37
55
# Put your test command here.
@@ -41,15 +59,11 @@ test_script:
41
59
# Note that you must use the environment variable %PYTHON% to refer to
42
60
# the interpreter you're using - Appveyor does not do anything special
43
61
# to put the Python version you want to use on PATH.
44
- - " build.cmd %PYTHON%\\ python.exe setup.py test "
62
+ - " %PYTHON%\\ python.exe -m nose "
45
63
46
64
after_test :
47
65
# This step builds your wheels.
48
66
# Again, you only need build.cmd if you're building C extensions for
49
67
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
50
68
# interpreter
51
- - " build.cmd %PYTHON%\\ python.exe setup.py bdist_wheel"
52
-
53
- artifacts :
54
- # bdist_wheel puts your built wheel in the dist directory
55
- - path : dist\*
69
+ - " ls build\\ lib\\ py_sourcemap"
0 commit comments