Skip to content

Commit

Permalink
Merge pull request #8 from arcondello/setup-refactor
Browse files Browse the repository at this point in the history
Make minor changes to setup.*
  • Loading branch information
arcondello authored Nov 28, 2022
2 parents 015e36c + b1a7300 commit 0843667
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
1 change: 1 addition & 0 deletions dwave/gate/simulator/operation_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ def generate_op(
cython_file = (
"""\
# distutils: language = c++
# distutils: include_dirs = dwave/gate/simulator/
# cython: language_level=3
# THIS FILE WAS AUTOMATICALLY GENERATED BY dwave/gate/simulator/operation_generation.py
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3 :: Only

long_description = file: README.rst
Expand Down
21 changes: 4 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,17 @@ def build_extensions(self):
build_ext.build_extensions(self)


extensions = [
Extension(
name="dwave.gate.simulator.simulator",
sources=["dwave/gate/simulator/simulator.pyx"],
include_dirs=["dwave/gate/simulator/"],
language="c++",
),
Extension(
name="dwave.gate.registers.cyregister",
sources=["dwave/gate/registers/cyregister.pyx"],
include_dirs=["dwave/gate/registers/"],
language="c++",
),
]

setup(
name="dwave-gate",
install_requires=[
"numpy",
],
ext_modules=cythonize(
extensions, annotate=bool(os.getenv("CYTHON_ANNOTATE", False))
["dwave/gate/simulator/simulator.pyx",
"dwave/gate/registers/cyregister.pyx"
],
annotate=bool(os.getenv("CYTHON_ANNOTATE", False))
),
include_dirs=[numpy.get_include()],
cmdclass={"build_ext": build_ext_compiler_check},
zip_safe=False,
)

0 comments on commit 0843667

Please sign in to comment.