diff --git a/setup.py b/setup.py index 7cb6c4c4d..1a7e7690a 100644 --- a/setup.py +++ b/setup.py @@ -66,6 +66,16 @@ 'Programming Language :: Python :: 3.7', ] +# For the Ocean's SDK, each of these composites/samplers are added to the dwave.composites and +# dwave.samplers namespace respectively. +entry_points = {'dwave.samplers': ['ExactSolver = dimod:ExactSolver', + 'RandomSampler = dimod:RandomSampler', + ], + 'dwave.composites': ['StructureComposite = dimod:StructureComposite', + 'SpinReversalTransformComposite = dimod:SpinReversalTransformComposite', + 'FixedVariableComposite = dimod:FixedVariableComposite', + ]} + python_requires = '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*' try: @@ -158,6 +168,7 @@ def run_setup(cpp): classifiers=classifiers, zip_safe=False, python_requires=python_requires, + entry_points=entry_points, **kw )