Skip to content
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 1 commit into from Nov 1, 2019
Merged

Initialize tp_print in Python 3.8 #3201

merged 1 commit into from Nov 1, 2019

Conversation

orivej
Copy link
Contributor

@orivej orivej commented Oct 22, 2019

This should complete #3171 in silencing -Wmissing-field-initializers.

This should complete cython#3171 in silencing -Wmissing-field-initializers.
@scoder scoder added this to the 0.29.14 milestone Nov 1, 2019
@scoder scoder merged commit c75ed14 into cython:master Nov 1, 2019
scoder pushed a commit that referenced this pull request Nov 1, 2019
This should complete #3171 in silencing -Wmissing-field-initializers.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants