<div dir="ltr">Hi Joris,<div><br></div><div>Thanks, I'll try that.<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 1, 2018 at 5:20 AM, Joris Van den Bossche <span dir="ltr"><<a href="mailto:jorisvandenbossche@gmail.com" target="_blank">jorisvandenbossche@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Dylan,</div><div><br></div><div>In case you are still looking for a solution:I didn't directly find good templates for packages that depend on cython (there are quite some, but from quickly looking at them, I didn't find a simple one), but you can maybe have a look at one of the other scikit-learn-contrib packages that uses cython: <a href="https://github.com/scikit-learn-contrib/hdbscan" target="_blank">https://github.com/scikit-<wbr>learn-contrib/hdbscan</a></div><div>And you can check here how to adapt the Extension class to specify c++: <a href="http://cython.readthedocs.io/en/latest/src/userguide/wrapping_CPlusPlus.html#specify-c-language-in-setup-py" target="_blank">http://cython.readthedocs.io/<wbr>en/latest/src/userguide/<wbr>wrapping_CPlusPlus.html#<wbr>specify-c-language-in-setup-py</a></div><div><br></div><div>Best,</div><div>Joris<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2018-05-29 6:56 GMT+02:00 Dylan Fernando <span dir="ltr"><<a href="mailto:dylanf123@gmail.com" target="_blank">dylanf123@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I would like to publish this:</div><div><a href="https://github.com/dil12321/scikit-learn/tree/aode" target="_blank">https://github.com/dil12321/sc<wbr>ikit-learn/tree/aode</a><br></div><div><a href="https://github.com/scikit-learn/scikit-learn/pull/11093" target="_blank">https://github.com/scikit-lear<wbr>n/scikit-learn/pull/11093</a><br></div><div><br></div><div>as a scikit-learn-contrib project. However, I'm not sure how to write the setup.py file so that aode_helper.cpp and _aode.pyx get included in the package, and run correctly. How should I write setup.py?</div><div><br></div><div>Regards,</div><div>Dylan</div></div>
<br></div></div>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/scikit-learn</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/scikit-learn</a><br>
<br></blockquote></div><br></div></div></div>