Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Ian Bell
On Sat, Aug 2, 2014 at 7:42 PM, Matthew Brett 
wrote:

> On Sat, Aug 02, 2014 at 10:08 AM, Robert Bradshaw 
> wrote:
>
> > from: Robert Bradshaw 
> > date: Sat, Aug 02 10:08 AM -07:00 2014
> > to: Core developer mailing list of the Cython compiler <
> cython-devel@python.org>
> > reply-to: Core developer mailing list of the Cython compiler <
> cython-devel@python.org>
> > subject: Re: [Cython] Test/example for cpdef enum
> >
> > On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell  wrote:
> >> Are there any tests/docs/examples showing how to use the cpdef enum?
>  This
> >> is a feature I have been looking for for a long time and I am hoping to
> use
> >> it very soon in my own project.
> >
> > https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
> > https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
> >
> >> I have a windows box that I can run the alpha test suite on with the
> full
> >> complement of python versions.  Let me know if there is interest and I
> can
> >> run the tests.  Alternatively, if you are still doing a buildbot (the
> link
> >> at https://github.com/cython/cython/wiki/HackerGuide#buildbot is
> broken) ,
> >> we could configure a nightly slave to run the tests.
> >
> > That would be nice; windows is woefully undertested for Cython.
>
> Another big 'that would be nice' from me.
>
> We (the berkeley / nipy team) have a buildbot set up you could hook into
> if you need one.  The configuration is all on github at
> https://github.com/nipy/nibotmi , and you are welcome to access to the
> build master to play with configuration if you'd like.
>
> Can you set me up a nightly build (once per 24 hours) and we can then
iterate on getting things functional on my box to the level that is
needed.  I use anaconda for instance which might cause issues - I briefly
saw you use virtualenv.

Ian


> Cheers,
>
> Matthew
>
> --
> Sent from Vmail
>
> ___
> cython-devel mailing list
> cython-devel@python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>
>
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Ian Bell
On Sat, Aug 2, 2014 at 7:08 PM, Robert Bradshaw  wrote:

> On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell  wrote:
> > Are there any tests/docs/examples showing how to use the cpdef enum?
>  This
> > is a feature I have been looking for for a long time and I am hoping to
> use
> > it very soon in my own project.
>
> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
>

I see.  Stupidly I had thought that it would be automatic in the sense that
you don't have to manually declare which parameters will be output in the
python module.  Evidently that is not the case, which I guess is ok.  I had
hoped to avoid my script which parses my header and make a constants
module.  It works fine, its not the prettiest, but I guess I won't be
saying goodbye to it any time soon.


>
> > I have a windows box that I can run the alpha test suite on with the full
> > complement of python versions.  Let me know if there is interest and I
> can
> > run the tests.  Alternatively, if you are still doing a buildbot (the
> link
> > at https://github.com/cython/cython/wiki/HackerGuide#buildbot is
> broken) ,
> > we could configure a nightly slave to run the tests.
>
> That would be nice; windows is woefully undertested for Cython.
>
> - Robert
> ___
> cython-devel mailing list
> cython-devel@python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Matthew Brett
Hi,

On Mon, Aug 4, 2014 at 4:11 PM, Ian Bell  wrote:
>
>
>
> On Sat, Aug 2, 2014 at 7:42 PM, Matthew Brett 
> wrote:
>>
>> On Sat, Aug 02, 2014 at 10:08 AM, Robert Bradshaw 
>> wrote:
>>
>> > from: Robert Bradshaw 
>> > date: Sat, Aug 02 10:08 AM -07:00 2014
>> > to: Core developer mailing list of the Cython compiler
>> > 
>> > reply-to: Core developer mailing list of the Cython compiler
>> > 
>> > subject: Re: [Cython] Test/example for cpdef enum
>> >
>> > On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell  wrote:
>> >> Are there any tests/docs/examples showing how to use the cpdef enum?
>> >> This
>> >> is a feature I have been looking for for a long time and I am hoping to
>> >> use
>> >> it very soon in my own project.
>> >
>> > https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
>> > https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
>> >
>> >> I have a windows box that I can run the alpha test suite on with the
>> >> full
>> >> complement of python versions.  Let me know if there is interest and I
>> >> can
>> >> run the tests.  Alternatively, if you are still doing a buildbot (the
>> >> link
>> >> at https://github.com/cython/cython/wiki/HackerGuide#buildbot is
>> >> broken) ,
>> >> we could configure a nightly slave to run the tests.
>> >
>> > That would be nice; windows is woefully undertested for Cython.
>>
>> Another big 'that would be nice' from me.
>>
>> We (the berkeley / nipy team) have a buildbot set up you could hook into
>> if you need one.  The configuration is all on github at
>> https://github.com/nipy/nibotmi , and you are welcome to access to the
>> build master to play with configuration if you'd like.
>>
> Can you set me up a nightly build (once per 24 hours) and we can then
> iterate on getting things functional on my box to the level that is needed.
> I use anaconda for instance which might cause issues - I briefly saw you use
> virtualenv.

Yes, the classes I wrote to make making a build factor a little more
automated use virtualenvs; if you don't want to use those classes, you
can use the bare-metal buildbot build steps with Ananconda on the
slave.  But - do you need Anaconda to set up a Cython build test?
Maybe you can use virtualenv with the Anaconda Python?

Cheers,

Matthew
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Ian Bell
On Tue, Aug 5, 2014 at 1:16 AM, Matthew Brett 
wrote:

> Hi,
>
> On Mon, Aug 4, 2014 at 4:11 PM, Ian Bell  wrote:
> >
> >
> >
> > On Sat, Aug 2, 2014 at 7:42 PM, Matthew Brett 
> > wrote:
> >>
> >> On Sat, Aug 02, 2014 at 10:08 AM, Robert Bradshaw 
> >> wrote:
> >>
> >> > from: Robert Bradshaw 
> >> > date: Sat, Aug 02 10:08 AM -07:00 2014
> >> > to: Core developer mailing list of the Cython compiler
> >> > 
> >> > reply-to: Core developer mailing list of the Cython compiler
> >> > 
> >> > subject: Re: [Cython] Test/example for cpdef enum
> >> >
> >> > On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell 
> wrote:
> >> >> Are there any tests/docs/examples showing how to use the cpdef enum?
> >> >> This
> >> >> is a feature I have been looking for for a long time and I am hoping
> to
> >> >> use
> >> >> it very soon in my own project.
> >> >
> >> >
> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
> >> >
> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
> >> >
> >> >> I have a windows box that I can run the alpha test suite on with the
> >> >> full
> >> >> complement of python versions.  Let me know if there is interest and
> I
> >> >> can
> >> >> run the tests.  Alternatively, if you are still doing a buildbot (the
> >> >> link
> >> >> at https://github.com/cython/cython/wiki/HackerGuide#buildbot is
> >> >> broken) ,
> >> >> we could configure a nightly slave to run the tests.
> >> >
> >> > That would be nice; windows is woefully undertested for Cython.
> >>
> >> Another big 'that would be nice' from me.
> >>
> >> We (the berkeley / nipy team) have a buildbot set up you could hook into
> >> if you need one.  The configuration is all on github at
> >> https://github.com/nipy/nibotmi , and you are welcome to access to the
> >> build master to play with configuration if you'd like.
> >>
> > Can you set me up a nightly build (once per 24 hours) and we can then
> > iterate on getting things functional on my box to the level that is
> needed.
> > I use anaconda for instance which might cause issues - I briefly saw you
> use
> > virtualenv.
>
> Yes, the classes I wrote to make making a build factor a little more
> automated use virtualenvs; if you don't want to use those classes, you
> can use the bare-metal buildbot build steps with Ananconda on the
> slave.  But - do you need Anaconda to set up a Cython build test?
> Maybe you can use virtualenv with the Anaconda Python?
>
> So far as I can tell, anaconda and virtualenv don't play too well
together.  Which is too bad, because I recall having some issues with
something (buildbot?) not running happily in an anaconda env


> Cheers,
>
> Matthew
> ___
> cython-devel mailing list
> cython-devel@python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Matthew Brett
On Mon, Aug 4, 2014 at 4:19 PM, Ian Bell  wrote:
>
>
>
> On Tue, Aug 5, 2014 at 1:16 AM, Matthew Brett 
> wrote:
>>
>> Hi,
>>
>> On Mon, Aug 4, 2014 at 4:11 PM, Ian Bell  wrote:
>> >
>> >
>> >
>> > On Sat, Aug 2, 2014 at 7:42 PM, Matthew Brett 
>> > wrote:
>> >>
>> >> On Sat, Aug 02, 2014 at 10:08 AM, Robert Bradshaw 
>> >> wrote:
>> >>
>> >> > from: Robert Bradshaw 
>> >> > date: Sat, Aug 02 10:08 AM -07:00 2014
>> >> > to: Core developer mailing list of the Cython compiler
>> >> > 
>> >> > reply-to: Core developer mailing list of the Cython compiler
>> >> > 
>> >> > subject: Re: [Cython] Test/example for cpdef enum
>> >> >
>> >> > On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell 
>> >> > wrote:
>> >> >> Are there any tests/docs/examples showing how to use the cpdef enum?
>> >> >> This
>> >> >> is a feature I have been looking for for a long time and I am hoping
>> >> >> to
>> >> >> use
>> >> >> it very soon in my own project.
>> >> >
>> >> >
>> >> > https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
>> >> >
>> >> > https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
>> >> >
>> >> >> I have a windows box that I can run the alpha test suite on with the
>> >> >> full
>> >> >> complement of python versions.  Let me know if there is interest and
>> >> >> I
>> >> >> can
>> >> >> run the tests.  Alternatively, if you are still doing a buildbot
>> >> >> (the
>> >> >> link
>> >> >> at https://github.com/cython/cython/wiki/HackerGuide#buildbot is
>> >> >> broken) ,
>> >> >> we could configure a nightly slave to run the tests.
>> >> >
>> >> > That would be nice; windows is woefully undertested for Cython.
>> >>
>> >> Another big 'that would be nice' from me.
>> >>
>> >> We (the berkeley / nipy team) have a buildbot set up you could hook
>> >> into
>> >> if you need one.  The configuration is all on github at
>> >> https://github.com/nipy/nibotmi , and you are welcome to access to the
>> >> build master to play with configuration if you'd like.
>> >>
>> > Can you set me up a nightly build (once per 24 hours) and we can then
>> > iterate on getting things functional on my box to the level that is
>> > needed.
>> > I use anaconda for instance which might cause issues - I briefly saw you
>> > use
>> > virtualenv.
>>
>> Yes, the classes I wrote to make making a build factor a little more
>> automated use virtualenvs; if you don't want to use those classes, you
>> can use the bare-metal buildbot build steps with Ananconda on the
>> slave.  But - do you need Anaconda to set up a Cython build test?
>> Maybe you can use virtualenv with the Anaconda Python?
>>
> So far as I can tell, anaconda and virtualenv don't play too well together.
> Which is too bad, because I recall having some issues with something
> (buildbot?) not running happily in an anaconda env

Maybe it's worth giving it a shot and see if problems arise?

Am I right in thinking you can install Python.org Python alongside
Anaconda?   Maybe you could do that?

Cheers,

Matthew
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Ian Bell
On Tue, Aug 5, 2014 at 1:28 AM, Matthew Brett 
wrote:

> On Mon, Aug 4, 2014 at 4:19 PM, Ian Bell  wrote:
> >
> >
> >
> > On Tue, Aug 5, 2014 at 1:16 AM, Matthew Brett 
> > wrote:
> >>
> >> Hi,
> >>
> >> On Mon, Aug 4, 2014 at 4:11 PM, Ian Bell  wrote:
> >> >
> >> >
> >> >
> >> > On Sat, Aug 2, 2014 at 7:42 PM, Matthew Brett <
> matthew.br...@gmail.com>
> >> > wrote:
> >> >>
> >> >> On Sat, Aug 02, 2014 at 10:08 AM, Robert Bradshaw <
> rober...@gmail.com>
> >> >> wrote:
> >> >>
> >> >> > from: Robert Bradshaw 
> >> >> > date: Sat, Aug 02 10:08 AM -07:00 2014
> >> >> > to: Core developer mailing list of the Cython compiler
> >> >> > 
> >> >> > reply-to: Core developer mailing list of the Cython compiler
> >> >> > 
> >> >> > subject: Re: [Cython] Test/example for cpdef enum
> >> >> >
> >> >> > On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell 
> >> >> > wrote:
> >> >> >> Are there any tests/docs/examples showing how to use the cpdef
> enum?
> >> >> >> This
> >> >> >> is a feature I have been looking for for a long time and I am
> hoping
> >> >> >> to
> >> >> >> use
> >> >> >> it very soon in my own project.
> >> >> >
> >> >> >
> >> >> >
> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
> >> >> >
> >> >> >
> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
> >> >> >
> >> >> >> I have a windows box that I can run the alpha test suite on with
> the
> >> >> >> full
> >> >> >> complement of python versions.  Let me know if there is interest
> and
> >> >> >> I
> >> >> >> can
> >> >> >> run the tests.  Alternatively, if you are still doing a buildbot
> >> >> >> (the
> >> >> >> link
> >> >> >> at https://github.com/cython/cython/wiki/HackerGuide#buildbot is
> >> >> >> broken) ,
> >> >> >> we could configure a nightly slave to run the tests.
> >> >> >
> >> >> > That would be nice; windows is woefully undertested for Cython.
> >> >>
> >> >> Another big 'that would be nice' from me.
> >> >>
> >> >> We (the berkeley / nipy team) have a buildbot set up you could hook
> >> >> into
> >> >> if you need one.  The configuration is all on github at
> >> >> https://github.com/nipy/nibotmi , and you are welcome to access to
> the
> >> >> build master to play with configuration if you'd like.
> >> >>
> >> > Can you set me up a nightly build (once per 24 hours) and we can then
> >> > iterate on getting things functional on my box to the level that is
> >> > needed.
> >> > I use anaconda for instance which might cause issues - I briefly saw
> you
> >> > use
> >> > virtualenv.
> >>
> >> Yes, the classes I wrote to make making a build factor a little more
> >> automated use virtualenvs; if you don't want to use those classes, you
> >> can use the bare-metal buildbot build steps with Ananconda on the
> >> slave.  But - do you need Anaconda to set up a Cython build test?
> >> Maybe you can use virtualenv with the Anaconda Python?
> >>
> > So far as I can tell, anaconda and virtualenv don't play too well
> together.
> > Which is too bad, because I recall having some issues with something
> > (buildbot?) not running happily in an anaconda env
>
> Maybe it's worth giving it a shot and see if problems arise?
>
> Am I right in thinking you can install Python.org Python alongside
> Anaconda?   Maybe you could do that?
>
> That's right - my current config has two minicondas (32/64 bit) defaulting
to py27 along with python.org 27 32 bit which I need to keep around due to
the delicate interdependencies of wxpython, python, and cx_freeze for a
couple of my projects

Cheers,
>
> Matthew
> ___
> cython-devel mailing list
> cython-devel@python.org
> https://mail.python.org/mailman/listinfo/cython-devel
>
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Test/example for cpdef enum

2014-08-04 Thread Robert Bradshaw
On Mon, Aug 4, 2014 at 4:14 PM, Ian Bell  wrote:
>
> On Sat, Aug 2, 2014 at 7:08 PM, Robert Bradshaw  wrote:
>>
>> On Sat, Aug 2, 2014 at 3:56 AM, Ian Bell  wrote:
>> > Are there any tests/docs/examples showing how to use the cpdef enum?
>> > This
>> > is a feature I have been looking for for a long time and I am hoping to
>> > use
>> > it very soon in my own project.
>>
>> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pyx
>> https://github.com/cython/cython/blob/master/tests/run/cpdef_enums.pxd
>
>
> I see.  Stupidly I had thought that it would be automatic in the sense that
> you don't have to manually declare which parameters will be output in the
> python module.  Evidently that is not the case, which I guess is ok.  I had
> hoped to avoid my script which parses my header and make a constants module.
> It works fine, its not the prettiest, but I guess I won't be saying goodbye
> to it any time soon.

Yeah, we don't have anything that looks at the actual .h/.c files yet.
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel