setup.py could only try to regenerate the file (and thus require
cython) if the source has been modified. Here's an example, though
there are likely better ways to accomplish the same thing:
https://github.com/commonsense/divisi2/blob/master/setup.py#L57

-Ken


On Fri, Oct 12, 2012 at 2:59 PM, Jake Vanderplas
<[email protected]> wrote:
> Hi Daniel,
> sklearn is set up this way so that cython is not a build dependency for
> users: we operate under the simpler the installation is for end-users, the
> better (even if it causes minor headaches for developers).
>
> When I want to try out changes in a pyx file, I modify the file, use `cython
> filename.pyx` to generate the C file, and then run setup.py
>    Jake
>
>
> On 10/12/2012 11:44 AM, Daniel Mahler wrote:
>
> [These must all be FAQs, but I have not beeen able to find the answer]
>
> What is the recommended way to build scikit so that .c files are regenerated
> from .pyx files?
> I want to try out some changes to sklearn/ensemble/_gradient_boosting.pyx,
> but the setup.py seems to be written to just run gcc on the generated .c
> files which is also checked into git.
> What do developers working on cython files do?
> What is the reason for checking in the .c files and not having setup.py
> generate them from .pyx?
>
> thanks
> Daniel
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
>
>
>
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to