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

Fix all the warnings in Cython extensions #529

Open
sserita opened this issue Jan 21, 2025 · 0 comments
Open

Fix all the warnings in Cython extensions #529

sserita opened this issue Jan 21, 2025 · 0 comments
Milestone

Comments

@sserita
Copy link
Contributor

sserita commented Jan 21, 2025

Describe the bug
We have many errors of the form

/opt/homebrew/Caskroom/miniconda/base/envs/pygsti/lib/python3.11/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]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^

when compiling Cython instructions. We should fix these, along with the several other unrelated (but probably should still be fixed) warnings, including this one:

C:\hostedtoolcache\windows\Python\3.12.8\x64\Lib\site-packages\setuptools\__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************
!!

To Reproduce
Run python setup.py build_ext --inplace to rebuild the extensions.

Expected behavior
Cython extensions build cleanly with no warnings.

@sserita sserita added bug A bug or regression and removed bug A bug or regression labels Jan 21, 2025
@sserita sserita added this to the 0.9.14 milestone Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant