Skip to content

Commit

Permalink
Fix NumPy V2
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Sep 23, 2024
1 parent 0522d38 commit 82a95a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "cython>=0.29", "oldest-supported-numpy"]
requires = ["setuptools", "wheel", "cython>=3.0.10", "numpy>=2.0,<3"]
build-backend = "setuptools.build_meta:__legacy__"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy>=1.17,<2
numpy>=1.17
scipy>=1.3
cython>=3.0.10
qiskit>=1.0
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@
include_dirs=INCLUDE_DIRS,
extra_compile_args=COMPILER_FLAGS+OPTIONAL_FLAGS,
extra_link_args=LINK_FLAGS+OPTIONAL_ARGS,
language='c++',
define_macros=[("NPY_NO_DEPRECATED_API",
"NPY_1_7_API_VERSION")])
language='c++')
EXT_MODULES.append(mod)


Expand Down

0 comments on commit 82a95a7

Please sign in to comment.