Commit 3a823fa8 authored by Jason Madden's avatar Jason Madden

On windows, build and install from an sdist [skip travis]

This is to help diagnose issues like https://github.com/gevent/gevent/issues/1296
parent f8f2e59f
...@@ -138,13 +138,15 @@ cache: ...@@ -138,13 +138,15 @@ cache:
- '%LOCALAPPDATA%\pip\Cache' - '%LOCALAPPDATA%\pip\Cache'
build_script: build_script:
# Build the compiled extension # Build the compiled extension. First we make an sdist, then
- "%CMD_IN_ENV% %PYEXE% setup.py bdist_wheel bdist_wininst" # we install from that, to test sdist building issues. Finally we
# build a wheel for downloading purposes
- "%CMD_IN_ENV% %PYEXE% setup.py sdist --formats=gztar"
- ps: "ls dist" - ps: "ls dist"
# Now install the wheel. # Now install the sdist.
# I couldn't get wildcards to work for pip install, so stuff it # I couldn't get wildcards to work for pip install, so stuff it
# into a variable, using python to glob. # into a variable, using python to glob.
- "%PYEXE% -c \"import glob; print(glob.glob('dist/*whl')[0])\" > whl.txt" - "%PYEXE% -c \"import glob; print(glob.glob('dist/*gz')[0])\" > whl.txt"
- set /p PYWHL=<whl.txt - set /p PYWHL=<whl.txt
- "%PYEXE% -m pip install -U --upgrade-strategy=eager %PYWHL%[test,events,dnspython]" - "%PYEXE% -m pip install -U --upgrade-strategy=eager %PYWHL%[test,events,dnspython]"
...@@ -154,10 +156,7 @@ test_script: ...@@ -154,10 +156,7 @@ test_script:
- "cd src/greentest && %PYEXE% testrunner.py --config known_failures.py --quiet && cd ../.." - "cd src/greentest && %PYEXE% testrunner.py --config known_failures.py --quiet && cd ../.."
after_test: after_test:
# We already built the wheel during build_script, because it's - "%CMD_IN_ENV% %PYEXE% setup.py bdist_wheel"
# much faster to do that and install from the wheel than to
# rebuild it here
#- "%CMD_IN_ENV% %PYEXE% setup.py bdist_wheel bdist_wininst"
- ps: "ls dist" - ps: "ls dist"
artifacts: artifacts:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment