Cibuildwheel: Avoid Python2 Deprecation error by just building python 3 targets?

Created on 13 Feb 2020  路  4Comments  路  Source: joerick/cibuildwheel

Hi,
I'm experimenting with cibuildwheel on travis.

My build only has python3 targets but I'm hitting and error about python2 being deprecated.

Any idea if I can build the wheel for python3 target(s) ?

https://travis-ci.org/stuaxo/pycairo/jobs/649985094#L1281

Cheers
Stuart

Most helpful comment

Sure, check the docs for CIBW_BUILD and CIBW_SKIP: https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip

Probably you'll just want to set CIBW_SKIP: cp27-*.

All 4 comments

Sure, check the docs for CIBW_BUILD and CIBW_SKIP: https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip

Probably you'll just want to set CIBW_SKIP: cp27-*.

For anyone else that ends up here, don't accidentally copy the "." after the example env var, just copy:

CIBW_SKIP: cp27-*

Yes, it's not there in the docs: https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip

User error on my part, as I'm doing this in gaps at work as I wait for something else to build.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msanders picture msanders  路  5Comments

mondeja picture mondeja  路  3Comments

bluesheeptoken picture bluesheeptoken  路  5Comments

heitorlessa picture heitorlessa  路  12Comments

MaxHalford picture MaxHalford  路  11Comments