Skip to content

BLD: pin cython language level to '2'#451

Closed
tacaswell wants to merge 1 commit intoPyWavelets:masterfrom
tacaswell:bld_cython_language_level
Closed

BLD: pin cython language level to '2'#451
tacaswell wants to merge 1 commit intoPyWavelets:masterfrom
tacaswell:bld_cython_language_level

Conversation

@tacaswell
Copy link

This is a simpler alternative to
#435

This is a simpler alternative to PyWavelets#435
@tacaswell
Copy link
Author

Given that the next version of cython is going to change the default, it may be worth doing a bug-fix release with this change?

@rgommers
Copy link
Member

rgommers commented Feb 4, 2019

This change is cleaner than gh-434, but I'd say we should pin it to 3 not 2 in master (we're dropping 2.7 in the next release).

@tacaswell are the warnings bothering you somehow? It's not really a bug, just a build-time warning

@rgommers rgommers added the build label Feb 4, 2019
@tacaswell
Copy link
Author

I have a script the builds master branch of the whole stack. Without this patch pywt does not build against cython master.

@tacaswell
Copy link
Author

To clarify, on cython master they now default to lanugage level "3str".

@rgommers
Copy link
Member

rgommers commented Feb 4, 2019

Ah okay. We've already dropped 2.7 in master, so changing this to language_level: 3 is the way to go I think. And closing gh-434. @grlee77 agree?

@grlee77
Copy link
Contributor

grlee77 commented Feb 4, 2019

I agree adding language_level as done here is cleaner, but I think the various import syntax changes in gh-435 will still be necessary in order for this to work with language level 3. I can update gh-435 to just remove the language_level statements from the separate files and put it in setup.py instead as done here.

@rgommers
Copy link
Member

rgommers commented Feb 4, 2019

sounds good to me

grlee77 added a commit to grlee77/pywt that referenced this pull request Feb 4, 2019
grlee77 added a commit to grlee77/pywt that referenced this pull request Feb 4, 2019
@rgommers
Copy link
Member

rgommers commented Feb 4, 2019

Allright, merged gh-434 which has the language-level: 3 that came out of this PR. So closing this. Thanks @tacaswell

@rgommers rgommers closed this Feb 4, 2019
@tacaswell tacaswell deleted the bld_cython_language_level branch February 10, 2019 18:47
@tacaswell
Copy link
Author

Great!

It may still be worth putting this change in a bug fix release.

@tacaswell tacaswell restored the bld_cython_language_level branch February 10, 2019 18:48
@grlee77
Copy link
Contributor

grlee77 commented Feb 10, 2019

Yeah, that is a good idea. I made a PR of this commit vs. the 1.0.x branch in #454.

@tacaswell tacaswell deleted the bld_cython_language_level branch February 12, 2019 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants