[Twisted-Python] Windows buildbots and Appveyor

Oliver Palmer oliverpalmer at opalmer.com
Wed Jul 20 19:25:10 MDT 2016


If you or someone else ends up working on this I can attest that his setup
works well and will build C-extensions.  I've been using his script
extensively on pywincffi for Python 2.6+ and Python 3.3+ so far without
issues.  For reference, here's my yaml file:

    https://github.com/opalmer/pywincffi/blob/master/appveyor.yml

Since Twisted is using tox I assume that either tox should setup the
environment or %PYTHON_VERSION% and %PYTHON_ARCH% need to be set by the
build matrix and tox would be called with the wrapper:

    cmd /E:ON /V:ON /C run_with_cmd.cmd tox <arguments>

For pywincffi I thought about writing a tox plugin to do the work of
setting up the environment but ended up deciding against it and using the
build matrix approach instead.  It kept it simple, made it easy for people
to see how the build was setup and adding new versions to the build became
a one or two line change.

I'm not sure about how others would feel about it but it seems like
expanding the build matrix and adding run_with_cmd would be a good way to
start testing against more versions and fixing the C-extension issue.
Improving the build on AppyVeyor might also help shed some light on the
existing test failures too maybe.

On Wed, Jul 20, 2016 at 6:32 PM, Craig Rodrigues <rodrigc at crodrigues.org>
wrote:

> The Appveyor setup with Python 2.7 currently does not build any C
> extensions.
> This means that IOCP reactor is not currently built and none of the IOCP
> tests are run in Appveyor.  I'm not sure offhand what the fix is,
> but I notice that quite a few Python projects import this script from
> Olivier Grisel:
>
> https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor/run_with_env.cmd
>
> which sets the environment correctly for the Windows compilers, and
> then uses the script from inside appveyor.yml with something like:
> https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml
>
> It would be nice if we could get the C extensions buildin in Appveyor.
>
>
> The Appveyor setup does not have a Python 3 setup, so no Python 3 builds
> are done.
>
> There used to be a Python 3 buildbot, and although many of the tests were
> broken,
> it was producing some interesting logs.  For example, I saw a lot of
> warnings
> in the SSL code where strings where being passed as arguments to API's
> which
> took bytes as arguments.
>
> Can we bring back at least one Windows Python 3 buildbot, and leave
> it as an unsupported, on-demand environment?
>
> I am working on getting more Windows Python 3 tests to pass, so this
> would be useful.
>
>
> --
> Craig
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20160720/6d3e16bf/attachment-0002.html>


More information about the Twisted-Python mailing list