This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from HQSquantumsimulations/develop
Develop
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 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
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 |
---|---|---|
|
@@ -93,6 +93,11 @@ def build_extension(self, ext: Extension) -> None: | |
check=True) | ||
# Switch off Multithreading on macos because of openmp problems | ||
if platform.system() == 'Darwin': | ||
# Disabling implicit function declaration warning in C compilation | ||
if 'CFLAGS' in os.environ.keys(): | ||
os.environ['CFLAGS'] = os.environ['CFLAGS'] + " -Wno-implicit-function-declaration" | ||
else: | ||
os.environ['CFLAGS'] = "-Wno-implicit-function-declaration" | ||
args_for_cmake = ['-DMULTITHREADED=0'] | ||
else: | ||
args_for_cmake = [] | ||
|
@@ -122,9 +127,6 @@ def setup_packages(): | |
with open(os.path.join(path, 'README.md')) as file: | ||
readme = file.read() | ||
|
||
with open(os.path.join('LICENSE')) as file: | ||
License = file.read() | ||
|
||
install_requires = [ | ||
'cffi', | ||
'numpy', | ||
|
@@ -138,15 +140,16 @@ def setup_packages(): | |
+ ' to QuEST quantum simulation toolkit;' | ||
+ ' Compile functionality, create, build and import' | ||
+ ' valid QuEST source code from python'), | ||
'version': '3.2.2', | ||
'version': '3.2.3', | ||
'long_description': readme, | ||
'long_description_content_type': 'text/markdown', | ||
'packages': packages, | ||
# 'package_dir': {'': 'pyquest_cffi'}, | ||
'author': 'HQS Quantum Simulations: Sebastian Zanker, Nicolas Vogt', | ||
'author_email': '[email protected]', | ||
'url': '', | ||
'download_url': 'https://github.com/HQSquantumsimulations/PyQuEST-cffi/archive/3.2.0.tar.gz', | ||
'license': License, | ||
'license': "Apache License 2.0", | ||
'install_requires': install_requires, | ||
'setup_requires': ['cffi'], | ||
# 'include_package_data': True, | ||
|
@@ -156,6 +159,7 @@ def setup_packages(): | |
'cmdclass': {'build_ext': CustomBuild, | ||
'build_py': BuildPyCommand}, | ||
'zip_safe': False, | ||
'python_requires': '>=3.6', | ||
'ext_modules': [CustomExtension('questlib')], | ||
} | ||
setup(**setup_args) | ||
|