Skip to content

Commit 3ba9cdf

Browse files
committed
Platform-conditional dwavebinarycsp flavour install
1 parent c96caa3 commit 3ba9cdf

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

setup.py

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,21 @@
1212
else:
1313
exec(open("./dwaveoceansdk/package_info.py").read())
1414

15-
install_requires = ['dwavebinarycsp>=0.0.2,<0.1.0',
16-
'dwave-networkx>=0.6.1,<0.7.0',
17-
'dwave-system>=0.5.0,<0.6.0',
18-
'dwave-qbsolv>=0.2.7,<0.3.0',
19-
'dwave-neal>=0.4.0,<0.5.0'
20-
]
15+
install_requires = [
16+
'dwave-networkx>=0.6.1,<0.7.0',
17+
'dwave-system>=0.5.0,<0.6.0',
18+
'dwave-qbsolv>=0.2.7,<0.3.0',
19+
'dwave-neal>=0.4.0,<0.5.0'
20+
]
21+
22+
extras_require = {
23+
':(platform_machine == "x86_64" or platform_machine == "amd64") and python_version != "3.4"': [
24+
'dwavebinarycsp[mip]>=0.0.2,<0.1.0'
25+
],
26+
':platform_machine != "x86_64" and platform_machine != "amd64" or python_version == "3.4"': [
27+
'dwavebinarycsp[maxgap]>=0.0.2,<0.1.0'
28+
]
29+
}
2130

2231
packages = ['dwaveoceansdk']
2332

@@ -47,5 +56,6 @@
4756
python_requires=python_requires,
4857
license='Apache 2.0',
4958
packages=packages,
50-
install_requires=install_requires
59+
install_requires=install_requires,
60+
extras_require=extras_require
5161
)

0 commit comments

Comments
 (0)