Skip to content

Commit 9a9c618

Browse files
committed
New branch
Signed-off-by: Adam Li <adam2392@gmail.com>
1 parent c634b8a commit 9a9c618

File tree

16 files changed

+2141
-659
lines changed

16 files changed

+2141
-659
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ doc-noplot: inplace
6262

6363
code-analysis:
6464
build_tools/linting.sh
65+
66+
build-dev:
67+
pip install --verbose --no-build-isolation --editable .

setup.py

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ def check_package_status(package, min_version):
169169
package_status["up_to_date"] = False
170170
package_status["version"] = ""
171171

172-
req_str = "scikit-learn requires {} >= {}.\n".format(package, min_version)
172+
req_str = "scikit-learn-tree requires {} >= {}.\n".format(package, min_version)
173173

174174
instructions = (
175175
"Installation instructions are available on the "
176-
"scikit-learn website: "
176+
"scikit-learn-tree website: "
177177
"http://scikit-learn.org/stable/install.html\n"
178178
)
179179

@@ -225,10 +225,10 @@ def check_package_status(package, min_version):
225225
{"sources": ["_cdnmf_fast.pyx"], "include_np": True},
226226
],
227227
"ensemble": [
228-
{"sources": ["_gradient_boosting.pyx"], "include_np": True},
228+
{"sources": ["_gradient_boosting.pyx"], "language": "c++", "include_np": True},
229229
],
230230
"ensemble._hist_gradient_boosting": [
231-
{"sources": ["_gradient_boosting.pyx"], "include_np": True},
231+
{"sources": ["_gradient_boosting.pyx"], "language": "c++", "include_np": True},
232232
{"sources": ["histogram.pyx"], "include_np": True},
233233
{"sources": ["splitting.pyx"], "include_np": True},
234234
{"sources": ["_binning.pyx"], "include_np": True},
@@ -310,7 +310,7 @@ def check_package_status(package, min_version):
310310
{"sources": ["_ball_tree.pyx.tp"], "include_np": True},
311311
{"sources": ["_kd_tree.pyx.tp"], "include_np": True},
312312
{"sources": ["_partition_nodes.pyx"], "language": "c++", "include_np": True},
313-
{"sources": ["_quad_tree.pyx"], "include_np": True},
313+
{"sources": ["_quad_tree.pyx"], "language": "c++", "include_np": True},
314314
],
315315
"svm": [
316316
{
@@ -378,9 +378,24 @@ def check_package_status(package, min_version):
378378
"include_np": True,
379379
"optimization_level": "O3",
380380
},
381-
{"sources": ["_splitter.pyx"], "include_np": True, "optimization_level": "O3"},
382-
{"sources": ["_criterion.pyx"], "include_np": True, "optimization_level": "O3"},
383-
{"sources": ["_utils.pyx"], "include_np": True, "optimization_level": "O3"},
381+
{
382+
"sources": ["_splitter.pyx"],
383+
"include_np": True,
384+
"language": "c++",
385+
"optimization_level": "O3",
386+
},
387+
{
388+
"sources": ["_criterion.pyx"],
389+
"include_np": True,
390+
"language": "c++",
391+
"optimization_level": "O3",
392+
},
393+
{
394+
"sources": ["_utils.pyx"],
395+
"include_np": True,
396+
"language": "c++",
397+
"optimization_level": "O3",
398+
},
384399
],
385400
"utils": [
386401
{"sources": ["sparsefuncs_fast.pyx"], "include_np": True},
@@ -629,4 +644,4 @@ def setup_package():
629644

630645

631646
if __name__ == "__main__":
632-
setup_package()
647+
setup_package()

0 commit comments

Comments
 (0)