Skip to content

Commit ccbedce

Browse files
committed
Attempt to simplify appveyor.yml
And fix cython problem
1 parent 9dfc60b commit ccbedce

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

appveyor.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -56,48 +56,27 @@ environment:
5656
PYTHON_VERSION: "3.5.0"
5757
PYTHON_ARCH: "64"
5858

59-
install:
60-
- ECHO "Filesystem root:"
61-
- ps: "ls \"C:/\""
62-
63-
- ECHO "Installed SDKs:"
64-
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
59+
init:
60+
- "ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON%"
6561

62+
install:
6663
# Install Python (from the official .msi of http://python.org) and pip when
6764
# not already installed.
6865
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
69-
70-
# Prepend newly installed Python to the PATH of this build (this cannot be
71-
# done from inside the powershell script as it would require to restart
72-
# the parent CMD process).
73-
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
74-
75-
# Check that we have the expected version and architecture for Python
76-
- "python --version"
77-
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
78-
79-
# Upgrade to the latest version of pip to avoid it displaying warnings
80-
# about it being out of date.
81-
- "pip install --disable-pip-version-check --user --upgrade pip wheel cython"
66+
- "%PYTHON%\\Scripts\\pip install --disable-pip-version-check --upgrade pip wheel cython"
8267

8368
build_script:
84-
# Build the compiled extension
85-
- "%CMD_IN_ENV% cython bencoder.pyx"
86-
- "%CMD_IN_ENV% python setup.py install"
69+
- "%PYTHON%\\Scripts\\cython bencoder.pyx"
70+
- "%PYTHON%\\python setup.py install"
8771

8872
test_script:
89-
# Run the project tests
90-
- "%CMD_IN_ENV% python setup.py test"
73+
- "%PYTHON%\\python setup.py test"
9174

9275
after_test:
93-
# If tests are successful, create binary packages for the project.
94-
- "%CMD_IN_ENV% python setup.py bdist_wheel"
95-
- "%CMD_IN_ENV% python setup.py bdist_wininst"
96-
- "%CMD_IN_ENV% python setup.py bdist_msi"
76+
- "%PYTHON%\\python setup.py bdist_wheel bdist_wininst bdist_msi"
9777
- ps: "ls dist"
9878

9979
artifacts:
100-
# Archive the generated packages in the ci.appveyor.com build report.
10180
- path: dist\*
10281

10382
#on_success:

0 commit comments

Comments
 (0)