librelist archives

« back to archive

waf or scons

waf or scons

From:
Gour
Date:
2012-07-08 @ 05:35
Hello!

After having some adventure hoping that tools within D community would
evolve (mostly GUI bindings), we're back to Python world...hoping to
use Python3 + Cython + (most probably) wxPython.

Bento seems the nicest solution and considering we have a need to build
some extension (using Cython) I'm curious about waf vs. scons support
in Bento.

Based on what I see, there is already support for waf, but I must say
that SCons docs were more digestible to me, so I wonder if there is any
plan to add SCons support in the nearby future or you are simply
satisfied  with waf and recommend it over SCons?


Sincerely,
Gour

-- 
Abandoning all attachment to the results of his activities, 
ever satisfied and independent, he performs no fruitive action, 
although engaged in all kinds of undertakings.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

Re: [bento] waf or scons

From:
David Cournapeau
Date:
2012-07-08 @ 12:30
Hi Gour,

On Sun, Jul 8, 2012 at 6:35 AM, Gour <gour@atmarama.net> wrote:
> Hello!
>
> After having some adventure hoping that tools within D community would
> evolve (mostly GUI bindings), we're back to Python world...hoping to
> use Python3 + Cython + (most probably) wxPython.
>
> Bento seems the nicest solution and considering we have a need to build
> some extension (using Cython) I'm curious about waf vs. scons support
> in Bento.
>
> Based on what I see, there is already support for waf, but I must say
> that SCons docs were more digestible to me, so I wonder if there is any
> plan to add SCons support in the nearby future or you are simply
> satisfied  with waf and recommend it over SCons?

The main issue with scons is that it is not really usable as a library
(unless they massively improved the situation in the last one year or
two), and waf codebase is easier to follow.

While it should be possible to add support for scons, it won't be a
priority for me.

David

Re: [bento] waf or scons

From:
Gour
Date:
2012-07-08 @ 18:12
On Sun, 8 Jul 2012 13:30:38 +0100
David Cournapeau <cournape@gmail.com> wrote:

Hello David,

> The main issue with scons is that it is not really usable as a library
> (unless they massively improved the situation in the last one year or
> two), and waf codebase is easier to follow.

Ahh, that's good point.

> While it should be possible to add support for scons, it won't be a
> priority for me.

OK. I believe waf is good-enough for our purposes.


Sincerely,
Gour


-- 
A person is said to be elevated in yoga when, having renounced 
all material desires, he neither acts for sense gratification 
nor engages in fruitive activities.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

Re: [bento] waf or scons

From:
Gour
Date:
2012-07-09 @ 19:07
On Sun, 8 Jul 2012 13:30:38 +0100
David Cournapeau <cournape@gmail.com> wrote:

> The main issue with scons is that it is not really usable as a library
> (unless they massively improved the situation in the last one year or
> two), and waf codebase is easier to follow.

Today I was (again) reading waf book and went through Bento docs...one
of the things I'm pondering upon is the following item 'make bento+waf
bundable (make it possible to bentofy a package with a single file)'
from TODO list and seeing there is quite some overlap between Bento &
waf, what it would mean?

Any plan when this bentofy-ation might happen?

Another concern is whether is Bentoo meant, similar to waf, not to be
installed system-wise?

Attempt to build Package for Archlinux and Bento was complaining:

gour@atmarama /v/a/l/d/python-bento $ makepkg
==> Making package: python-bento 0.1.1-1 (Pon Srp  9 21:06:39 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found bento-0.1.1.tar.gz
==> Validating source files with md5sums...
    bento-0.1.1.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting bento-0.1.1.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
installing bentomaker in current directory
installing bentomaker-3.2 in current directory
Using bentomaker under root/sudo is *strongly* discouraged - do you want 
to continue ? y/N
bentomaker: Error: bentomaker crashed (uncaught exception <class 
'NameError'>: global name 'raw_input' is not defined).
Please report this on bento issue tracker:
    http://github.com/cournape/bento/issues
You can get a full traceback by setting BENTOMAKER_DEBUG=1
==> ERROR: A failure occurred in build().
    Aborting...


Is it known issue or should I enable DEBUG to provide more info?


Sincerely,
Gour

-- 
One is understood to be in full knowledge whose every endeavor 
is devoid of desire for sense gratification. He is said by sages 
to be a worker for whom the reactions of work have been burned 
up by the fire of perfect knowledge.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

Re: [bento] waf or scons

From:
David Cournapeau
Date:
2012-07-09 @ 19:49
On Mon, Jul 9, 2012 at 8:07 PM, Gour <gour@atmarama.net> wrote:
> On Sun, 8 Jul 2012 13:30:38 +0100
> David Cournapeau <cournape@gmail.com> wrote:
>
>> The main issue with scons is that it is not really usable as a library
>> (unless they massively improved the situation in the last one year or
>> two), and waf codebase is easier to follow.
>
> Today I was (again) reading waf book and went through Bento docs...one
> of the things I'm pondering upon is the following item 'make bento+waf
> bundable (make it possible to bentofy a package with a single file)'
> from TODO list and seeing there is quite some overlap between Bento &
> waf, what it would mean?

So this particular item of the TODO list is obsolete. in config.ini,
you can set up were waf is located, and then:

python tools/singledist.py

will produce a bentomaker script that includes waf in it.

> Another concern is whether is Bentoo meant, similar to waf, not to be
> installed system-wise?

Right now, I would rather not have bento being installed because it is
still changing in (possibly) backward incompatible ways (If you are
not using hook files, you should be relatively safe though).

>
> Attempt to build Package for Archlinux and Bento was complaining:
>
> gour@atmarama /v/a/l/d/python-bento $ makepkg
> ==> Making package: python-bento 0.1.1-1 (Pon Srp  9 21:06:39 CEST 2012)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving Sources...
>   -> Found bento-0.1.1.tar.gz
> ==> Validating source files with md5sums...
>     bento-0.1.1.tar.gz ... Passed
> ==> Extracting Sources...
>   -> Extracting bento-0.1.1.tar.gz with bsdtar
> ==> Removing existing pkg/ directory...
> ==> Entering fakeroot environment...
> ==> Starting build()...
> installing bentomaker in current directory
> installing bentomaker-3.2 in current directory
> Using bentomaker under root/sudo is *strongly* discouraged - do you want
to continue ? y/N
> bentomaker: Error: bentomaker crashed (uncaught exception <class 
'NameError'>: global name 'raw_input' is not defined).
> Please report this on bento issue tracker:
>     http://github.com/cournape/bento/issues
> You can get a full traceback by setting BENTOMAKER_DEBUG=1
> ==> ERROR: A failure occurred in build().
>     Aborting...
>
>
> Is it known issue or should I enable DEBUG to provide more info?

No, please submit a bug. It is essentially an issue specific to python
 3 (I forgot that raw_input is python2 specific, and this codepath is
rarely used).

David

Re: [bento] waf or scons

From:
Gour
Date:
2012-07-09 @ 20:04
On Mon, 9 Jul 2012 20:49:27 +0100
David Cournapeau <cournape@gmail.com> wrote:

> So this particular item of the TODO list is obsolete. in config.ini,
> you can set up were waf is located, and then:
> 
> python tools/singledist.py
> 
> will produce a bentomaker script that includes waf in it.


Ohh, that's interesting.

> Right now, I would rather not have bento being installed because it is
> still changing in (possibly) backward incompatible ways (If you are
> not using hook files, you should be relatively safe though).

OK.

> No, please submit a bug. It is essentially an issue specific to python
>  3 (I forgot that raw_input is python2 specific, and this codepath is
> rarely used).

https://github.com/cournape/Bento/issues/117


Sincerely,
Gour


-- 
What is night for all beings is the time of awakening 
for the self-controlled; and the time of awakening for 
all beings is night for the introspective sage.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810