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

Pass CMAKE_GENERATOR_PLATFORM thorugh scikit_build in win32 builds #1143

Merged
merged 2 commits into from
Feb 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import setuptools
import subprocess
import sys
import platform


PACKAGE_NAME = os.getenv('QISKIT_AER_PACKAGE_NAME', 'qiskit-aer')
Expand Down Expand Up @@ -80,6 +81,12 @@
with open(README_PATH) as readme_file:
README = readme_file.read()


cmake_args = ["-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9"]
is_win_32_bit = (platform.system() == 'Windows' and platform.architecture()[0] == "32bit")
if is_win_32_bit:
cmake_args.append("-DCMAKE_GENERATOR_PLATFORM=Win32")

setup(
name=PACKAGE_NAME,
version=VERSION,
Expand Down Expand Up @@ -112,7 +119,7 @@
install_requires=requirements,
setup_requires=setup_requirements,
include_package_data=True,
cmake_args=["-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9"],
cmake_args=cmake_args,
keywords="qiskit aer simulator quantum addon backend",
zip_safe=False
)