New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialize tp_print in Python 3.8 #3201
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This should complete cython#3171 in silencing -Wmissing-field-initializers.
scoder
pushed a commit
that referenced
this pull request
Nov 1, 2019
This should complete #3171 in silencing -Wmissing-field-initializers.
3 tasks
This was referenced Mar 30, 2020
jhlegarreta
added a commit
to jhlegarreta/dipy
that referenced
this pull request
Jul 25, 2020
Fix NumPy and Cython deprecation and initialization warnings. Fixes: ``` dipy/core/interpolation.c:45594:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations] 0, /*tp_print*/ ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED' ``` and ``` /Users/runner/work/1/s/venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] ^ ``` raised for example in: https://dev.azure.com/dipy/46625eaf-7255-4a2c-9e92-befcdbdca2a8/_apis/build/builds/492/logs/85 The `tp_print` deprecation warning only when using Python 3.8 on macOS. Related Cython references: cython/cython#3201 cython/cython#3474
jhlegarreta
added a commit
to jhlegarreta/dipy
that referenced
this pull request
Jul 25, 2020
Fix NumPy and Cython deprecation and initialization warnings. Fixes: ``` dipy/core/interpolation.c:45594:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations] 0, /*tp_print*/ ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED' ``` and ``` /Users/runner/work/1/s/venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] ^ ``` raised for example in: https://dev.azure.com/dipy/46625eaf-7255-4a2c-9e92-befcdbdca2a8/_apis/build/builds/492/logs/85 The `tp_print` deprecation warning is only present when using Python 3.8 on macOS. Related Cython references: cython/cython#3201 cython/cython#3474
jhlegarreta
added a commit
to jhlegarreta/dipy
that referenced
this pull request
Jul 30, 2020
Fix `'tp_print' is deprecated` Cython warning. Fixes: ``` dipy/core/interpolation.c:45594:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations] 0, /*tp_print*/ ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^ /Users/runner/hostedtoolcache/Python/3.8.3/x64/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED' ``` raised for example in: https://dev.azure.com/dipy/46625eaf-7255-4a2c-9e92-befcdbdca2a8/_apis/build/builds/492/logs/85 The warning is only present when using Python 3.8 on macOS. Related Cython references: cython/cython#3201 cython/cython#3474
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should complete #3171 in silencing
-Wmissing-field-initializers
.