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

Ignore DeprecationWarnings raised by pyximport on Python 3.10. #1978

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Expand Up @@ -71,11 +71,15 @@ jobs:
# a warning on Python 3.10
# Ignore DeprecationWarnings raised by cvxpy importing scipy.sparse.X
# under SciPy 1.8.0+.
# Ignore DeprecationWarnings raised by versions of
# setuptools >= 65.0.0 during pyximport imports This can be removed
# once https://github.com/cython/cython/issues/4985
# is fixed and released.
- case-name: Python 3.10
os: ubuntu-latest
python-version: "3.10"
condaforge: 1
pytest-extra-options: "-W ignore::ImportWarning -W ignore::DeprecationWarning:cvxpy.interface.scipy_wrapper"
pytest-extra-options: "-W ignore::ImportWarning -W ignore::DeprecationWarning:cvxpy.interface.scipy_wrapper -W ignore:Absolute:DeprecationWarning"

# Windows. Once all tests pass without special options needed, this
# can be moved to the main os list in the test matrix. All the tests
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Expand Up @@ -65,6 +65,13 @@ def _determine_user_arguments(options):
"""
Add the 'openmp' option to the collection, based on the passed command-line
arguments or environment variables.

If using PEP517 builds, one can pass these options on the command-line
using, for example:

python -m build \
--wheel \
--config-setting="--global-option=--with-openmp"
"""
options['openmp'] = (
'--with-openmp' in sys.argv
Expand Down