Skip to content

Commit

Permalink
Make installable from sdist without cython
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir committed May 13, 2021
1 parent 23356e9 commit ff4b2ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include greedy *.h *.cpp *.pxd *.pyx
2 changes: 1 addition & 1 deletion greedy/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, child_sampler):
self.children = [child_sampler]

# set the parameters
self.parameters = parameters = child_sampler.parameters.copy()
self.parameters = child_sampler.parameters.copy()

# set the properties
self.properties = dict(child_properties=child_sampler.properties.copy())
Expand Down
1 change: 1 addition & 0 deletions greedy/descent.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# distutils: language = c++
# distutils: include_dirs = greedy/src/
# distutils: sources = greedy/src/descent.cpp
# distutils: language_level = 3

# Copyright 2019 D-Wave Systems Inc.
#
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def finalize_options(self):
extensions = [Extension(
name='greedy.descent',
sources=['./greedy/descent.pyx'],
include_dirs=['./greedy/src/']
)]

classifiers = [
Expand Down

0 comments on commit ff4b2ef

Please sign in to comment.