-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.qiskit-aer: 0.5.2 -> 0.6.1
- Loading branch information
1 parent
886a9bc
commit d0c96f2
Showing
2 changed files
with
76 additions
and
21 deletions.
There are no files selected for viewing
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
63 changes: 63 additions & 0 deletions
63
pkgs/development/python-modules/qiskit-aer/remove-conan-install.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index efeacfc..77bd6bd 100755 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -121,7 +121,11 @@ endif() | ||
# Looking for external libraries | ||
# | ||
|
||
-setup_conan() | ||
+find_package(muparserx REQUIRED) | ||
+find_package(nlohmann_json REQUIRED) | ||
+find_package(spdlog REQUIRED) | ||
+# for tests only | ||
+find_package(catch2) | ||
|
||
# If we do not set them with a space CMake fails afterwards if nothing is set for this vars! | ||
set(AER_LINKER_FLAGS " ") | ||
@@ -269,16 +273,16 @@ endif() | ||
set(AER_LIBRARIES | ||
${AER_LIBRARIES} | ||
${BLAS_LIBRARIES} | ||
- CONAN_PKG::nlohmann_json | ||
+ nlohmann_json | ||
Threads::Threads | ||
- CONAN_PKG::spdlog | ||
+ spdlog | ||
${DL_LIB} | ||
${THRUST_DEPENDANT_LIBS}) | ||
|
||
set(AER_COMPILER_DEFINITIONS ${AER_COMPILER_DEFINITIONS} ${CONAN_DEFINES}) | ||
# Cython build is only enabled if building through scikit-build. | ||
if(SKBUILD) # Terra Addon build | ||
- set(AER_LIBRARIES ${AER_LIBRARIES} CONAN_PKG::muparserx) | ||
+ set(AER_LIBRARIES ${AER_LIBRARIES} muparserx) | ||
add_subdirectory(qiskit/providers/aer/pulse/qutip_extra_lite/cy) | ||
add_subdirectory(qiskit/providers/aer/backends/wrappers) | ||
add_subdirectory(src/open_pulse) | ||
diff --git a/setup.py b/setup.py | ||
index fd71e9f..1561cc4 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -11,12 +11,6 @@ import inspect | ||
|
||
PACKAGE_NAME = os.getenv('QISKIT_AER_PACKAGE_NAME', 'qiskit-aer') | ||
|
||
-try: | ||
- from conans import client | ||
-except ImportError: | ||
- subprocess.call([sys.executable, '-m', 'pip', 'install', 'conan']) | ||
- from conans import client | ||
- | ||
try: | ||
from skbuild import setup | ||
except ImportError: | ||
@@ -46,8 +40,6 @@ common_requirements = [ | ||
|
||
setup_requirements = common_requirements + [ | ||
'scikit-build', | ||
- 'cmake!=3.17,!=3.17.0', | ||
- 'conan>=1.22.2' | ||
] | ||
|
||
requirements = common_requirements + ['qiskit-terra>=0.12.0'] |