librelist archives

« back to archive

Change to add a --destdir option to install

Change to add a --destdir option to install

From:
Toshio Kuratomi
Date:
2011-07-22 @ 04:02
Hey David, I've finally gotten around to seeing what it would be like to
package Bento for Fedora.  Ran into an issue whereI couldn't install bento
to a different directory hierarchy than it was built for (so that packaging
tools can build as an unpriviledged user to /tmp/builder/usr/bin/bentomaker,
for instance, but the software can then be installed onto a user's system
under /usr/bin/bentomaker.)

autoconf based Makefiles use DESTDIR for this and setuptools and distutils
use --root.  Since the path variables in bento seem autoconf inspired,
I implemented a --destdir command line option for install that does this.
I could change it to --root if you think that's a more appropriate name.

Pull request on github is here:
https://github.com/cournape/Bento/pull/56

If you prefer patches, I can do that too.

-Toshio

Re: [bento] Change to add a --destdir option to install

From:
David Cournapeau
Date:
2011-07-25 @ 04:45
Hi Toshio,

On Fri, Jul 22, 2011 at 1:02 PM, Toshio Kuratomi <a.badger@gmail.com> wrote:
> Hey David, I've finally gotten around to seeing what it would be like to
> package Bento for Fedora.  Ran into an issue whereI couldn't install bento
> to a different directory hierarchy than it was built for (so that packaging
> tools can build as an unpriviledged user to /tmp/builder/usr/bin/bentomaker,
> for instance, but the software can then be installed onto a user's system
> under /usr/bin/bentomaker.)
>
> autoconf based Makefiles use DESTDIR for this and setuptools and distutils
> use --root.  Since the path variables in bento seem autoconf inspired,
> I implemented a --destdir command line option for install that does this.
> I could change it to --root if you think that's a more appropriate name.

Thanks for looking into this. I added DESTDIR support, let me know if
something is missing.

cheers,

David

Re: [bento] Change to add a --destdir option to install

From:
Toshio Kuratomi
Date:
2011-07-25 @ 06:02
On Mon, Jul 25, 2011 at 01:45:54PM +0900, David Cournapeau wrote:
> Hi Toshio,
> 
> On Fri, Jul 22, 2011 at 1:02 PM, Toshio Kuratomi <a.badger@gmail.com> wrote:
> > Hey David, I've finally gotten around to seeing what it would be like to
> > package Bento for Fedora.  Ran into an issue whereI couldn't install bento
> > to a different directory hierarchy than it was built for (so that packaging
> > tools can build as an unpriviledged user to /tmp/builder/usr/bin/bentomaker,
> > for instance, but the software can then be installed onto a user's system
> > under /usr/bin/bentomaker.)
> >
> > autoconf based Makefiles use DESTDIR for this and setuptools and distutils
> > use --root.  Since the path variables in bento seem autoconf inspired,
> > I implemented a --destdir command line option for install that does this.
> > I could change it to --root if you think that's a more appropriate name.
> 
> Thanks for looking into this. I added DESTDIR support, let me know if
> something is missing.
> 
Thanks!  Just browsing the code, my only question is if destdir will now
show up in the installed package information?  destdir should never be
referenced on the system where the pacakge is installed.  If it is present,
it might not do any harm if no one ever makes use of it but it may confuse
some people who see it there.

I'll check the behaviour tomorrow to see.

-Toshio

Re: [bento] Change to add a --destdir option to install

From:
Gour-Gadadhara Dasa
Date:
2011-10-02 @ 15:33
On Sun, 24 Jul 2011 23:02:28 -0700
Toshio Kuratomi <a.badger@gmail.com> wrote:

> Thanks!  Just browsing the code, my only question is if destdir will
> now show up in the installed package information?  destdir should
> never be referenced on the system where the pacakge is installed.  If
> it is present, it might not do any harm if no one ever makes use of
> it but it may confuse some people who see it there.
> 
> I'll check the behaviour tomorrow to see.

What is the status of support for --destdir or --root which is required to
package Bento in Linux distros?

I've tried to prepare 0.0.6 package for Archlinux, but run into following:

[gour@atmarama python-bento] makepkg -cf
==> Making package: python-bento 0.0.6-1 (Sun Oct  2 17:11:51 CEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading bento-0.0.6.tar.gz...
--2011-10-02 17:11:51--  
http://pypi.python.org/packages/source/b/bento/bento-0.0.6.tar.gz
Resolving pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
Connecting to pypi.python.org|82.94.164.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 530260 (518K) [application/x-gzip]
Saving to: `bento-0.0.6.tar.gz.part'

100%[===================================================
===============================================
===>] 530,260      429K/s   in 1.2s    

2011-10-02 17:11:53 (429 KB/s) - `bento-0.0.6.tar.gz.part' saved [530260/530260]

==> Validating source files with md5sums...
    bento-0.0.6.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting bento-0.0.6.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
running install
running build
running config
error: /usr/local/bin/bentomaker: Permission denied
==> ERROR: A failure occurred in build().
    Aborting...


The problem is, afaict, that ../bento/configure has hardcoded stuff like:

prefix = "/usr/local"

added with ENH: add support for ubuntu/debian install scheme.

I know that using setuptools/distribute is not the right way to install Bento,
but then we need support for --destidir or --root in order to be able to build
Bento in a 'sandbox'.

Any plan to pull Toshio's patches to finalize this support?


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

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

Re: [bento] Change to add a --destdir option to install

From:
David Cournapeau
Date:
2011-10-02 @ 19:36
On Sun, Oct 2, 2011 at 4:33 PM, Gour-Gadadhara Dasa <gour@atmarama.net> wrote:
> On Sun, 24 Jul 2011 23:02:28 -0700
> Toshio Kuratomi <a.badger@gmail.com> wrote:
>
>> Thanks!  Just browsing the code, my only question is if destdir will
>> now show up in the installed package information?  destdir should
>> never be referenced on the system where the pacakge is installed.  If
>> it is present, it might not do any harm if no one ever makes use of
>> it but it may confuse some people who see it there.
>>
>> I'll check the behaviour tomorrow to see.
>
> What is the status of support for --destdir or --root which is required to
> package Bento in Linux distros?
>
> I've tried to prepare 0.0.6 package for Archlinux, but run into following:
>
> [gour@atmarama python-bento] makepkg -cf
> ==> Making package: python-bento 0.0.6-1 (Sun Oct  2 17:11:51 CEST 2011)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving Sources...
>  -> Downloading bento-0.0.6.tar.gz...
> --2011-10-02 17:11:51-- 
 http://pypi.python.org/packages/source/b/bento/bento-0.0.6.tar.gz
> Resolving pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
> Connecting to pypi.python.org|82.94.164.168|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 530260 (518K) [application/x-gzip]
> Saving to: `bento-0.0.6.tar.gz.part'
>
> 100%[===================================================
> ===============================================
> ===>] 530,260      429K/s   in 1.2s
>
> 2011-10-02 17:11:53 (429 KB/s) - `bento-0.0.6.tar.gz.part' saved [530260/530260]
>
> ==> Validating source files with md5sums...
>    bento-0.0.6.tar.gz ... Passed
> ==> Extracting Sources...
>  -> Extracting bento-0.0.6.tar.gz with bsdtar
> ==> Entering fakeroot environment...
> ==> Starting build()...
> running install
> running build
> running config
> error: /usr/local/bin/bentomaker: Permission denied
> ==> ERROR: A failure occurred in build().
>    Aborting...
>
>
> The problem is, afaict, that ../bento/configure has hardcoded stuff like:
>
> prefix = "/usr/local"

Which code are you referring to ? No path is hardcoded in bento. It
could be a bug, but that's a feature I use constantly, so would be
surprised.

>
> added with ENH: add support for ubuntu/debian install scheme.
>
> I know that using setuptools/distribute is not the right way to install Bento,
> but then we need support for --destidir or --root in order to be able to build
> Bento in a 'sandbox'.
>
> Any plan to pull Toshio's patches to finalize this support?

The code was integrated more than two months ago, but the last release
is even older than that. Bento development has taken a toll from my
recent change move into another continent (only temporary, though).

cheers,

David

Re: [bento] Change to add a --destdir option to install

From:
Gour-Gadadhara Dasa
Date:
2011-10-03 @ 13:09
On Sun, 2 Oct 2011 20:36:42 +0100
David Cournapeau <cournape@gmail.com> wrote:

> Which code are you referring to ? No path is hardcoded in bento. 

I was thinking about:

# This madness is used to support ubuntu/debian customization
prefix = "/usr/local"
base = "/usr"

from bento/commands/configure.py

> It could be a bug, but that's a feature I use constantly, so would be
> surprised.

Here is the log when I attempt to build Bento 0.0.5 & 0.0.6:

[gour@atmarama python-bento] makepkg -f
==> Making package: python-bento 0.0.5-1 (Mon Oct  3 14:34:18 CEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading bento-0.0.5.tar.gz...
--2011-10-03 14:34:20--  
http://pypi.python.org/packages/source/b/bento/bento-0.0.5.tar.gz
Resolving pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
Connecting to pypi.python.org|82.94.164.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 506774 (495K) [application/x-gzip]
Saving to: `bento-0.0.5.tar.gz.part'

100%[========================================================
==========================================
===>] 506,774      389K/s in 1.3s    

2011-10-03 14:34:21 (389 KB/s) - `bento-0.0.5.tar.gz.part' saved [506774/506774]

==> Validating source files with md5sums...
    bento-0.0.5.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting bento-0.0.5.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'summary'
  warnings.warn(msg)
running build
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'summary'
  warnings.warn(msg)
running install
running build
running install_lib
running install_data
running install_egg_info
running egg_info
creating bento.egg-info
writing bento.egg-info/PKG-INFO
writing top-level names to bento.egg-info/top_level.txt
writing dependency_links to bento.egg-info/dependency_links.txt
writing entry points to bento.egg-info/entry_points.txt
writing manifest file 'bento.egg-info/SOURCES.txt'
reading manifest file 'bento.egg-info/SOURCES.txt'
writing manifest file 'bento.egg-info/SOURCES.txt'
Copying bento.egg-info to 
/var/abs/local/devel/python-bento/pkg/usr/lib/python2.7/site-packages/bento-0.0.5-py2.7.egg-info
running install_scripts
Installing bentomaker script to /var/abs/local/devel/python-bento/pkg/usr/bin
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-bento 0.0.5-1 (Mon Oct  3 14:34:24 CEST 2011)
[gour@atmarama python-bento] vim PKGBUILD 
Error detected while processing 
/home/gour/.vim/bundle/makegreen/plugin/makegreen.vim:
line   79:
E227: mapping already exists for \t
Press ENTER or type command to continue
[gour@atmarama python-bento] makepkg -f  
==> Making package: python-bento 0.0.6-1 (Mon Oct  3 14:35:58 CEST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading bento-0.0.6.tar.gz...
--2011-10-03 14:35:58--  
http://pypi.python.org/packages/source/b/bento/bento-0.0.6.tar.gz
Resolving pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
Connecting to pypi.python.org|82.94.164.168|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 530260 (518K) [application/x-gzip]
Saving to: `bento-0.0.6.tar.gz.part'

100%[======================================================
============================================
===>] 530,260      385K/s in 1.3s    

2011-10-03 14:36:00 (385 KB/s) - `bento-0.0.6.tar.gz.part' saved [530260/530260]

==> Validating source files with md5sums...
    bento-0.0.6.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting bento-0.0.6.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
running build
running config
running install
running build
running config
error: /usr/local/bin/bentomaker: Permission denied
==> ERROR: A failure occurred in build().
    Aborting...


The build function used in preparing the package is:

build() {
  cd $startdir/src/bento-$pkgver

  python2 setup.py build || return 1
  python2 setup.py install --optimize=1 --prefix=/usr --root=$startdir/pkg
}


Any idea?

> The code was integrated more than two months ago, but the last release is
> even older than that. 

Hmm...that's strange.

Otoh, I tried to prepare the package bento-way by using:

python2 bootstrap.py || return 1
./bentomaker configure --prefix=/usr --destdir=$startdir/pkg || return 1
./bentomaker install || return 1
 
but I got:

but I got:

but I got:

[...]
installing bentomaker in current directory
installing bentomaker-2.7 in current directory
Using bentomaker under root/sudo is *strongly* discouraged - do you want 
to continue ? y/N
y
Usage: bentomaker [options]

bentomaker: error: no such option: --destdir
==> ERROR: A failure occurred in build().
    Aborting...

From when is --destdir supported committed in the codebase since I see it in
the trunk repo?

Edit: I did some 'hg annotate' on the Bento repo which shows:

Mon Jul 25 13:32:36 2011 +0900:

as the date when --destdir support was incorporated; hg tags does not show tag
for 0.0.6, but based on pypi it looks as that 0.0.6 was released earlier
(uploaded on 2011-07-15) which means that in order to prepare new Bento package
we need to wait for another release?


> Bento development has taken a toll from my recent change move into another
> continent (only temporary, though).

:-)

We're patient to receive 1st class python-based packaging tool. ;)


Sincerely,
Gour

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

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

Re: [bento] Change to add a --destdir option to install

From:
David Cournapeau
Date:
2011-10-03 @ 19:15
On Mon, Oct 3, 2011 at 2:09 PM, Gour-Gadadhara Dasa <gour@atmarama.net> wrote:
> On Sun, 2 Oct 2011 20:36:42 +0100
> David Cournapeau <cournape@gmail.com> wrote:
>
>> Which code are you referring to ? No path is hardcoded in bento.
>
> I was thinking about:
>
> # This madness is used to support ubuntu/debian customization
> prefix = "/usr/local"
> base = "/usr"
>
> from bento/commands/configure.py

This codepath is only followed when --prefix is not given

>
>> It could be a bug, but that's a feature I use constantly, so would be
>> surprised.
>
> Here is the log when I attempt to build Bento 0.0.5 & 0.0.6:
>
> [gour@atmarama python-bento] makepkg -f
> ==> Making package: python-bento 0.0.5-1 (Mon Oct  3 14:34:18 CEST 2011)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving Sources...
>  -> Downloading bento-0.0.5.tar.gz...
> --2011-10-03 14:34:20-- 
 http://pypi.python.org/packages/source/b/bento/bento-0.0.5.tar.gz
> Resolving pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
> Connecting to pypi.python.org|82.94.164.168|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 506774 (495K) [application/x-gzip]
> Saving to: `bento-0.0.5.tar.gz.part'
>
> 100%[========================================================
> ==========================================
> ===>] 506,774      389K/s in 1.3s
>
> 2011-10-03 14:34:21 (389 KB/s) - `bento-0.0.5.tar.gz.part' saved [506774/506774]
>
> ==> Validating source files with md5sums...
>    bento-0.0.5.tar.gz ... Passed
> ==> Extracting Sources...
>  -> Extracting bento-0.0.5.tar.gz with bsdtar
> ==> Entering fakeroot environment...
> ==> Starting build()...
> /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'summary'
>  warnings.warn(msg)
> running build
> /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'summary'
>  warnings.warn(msg)
> running install
> running build
> running install_lib
> running install_data
> running install_egg_info
> running egg_info
> creating bento.egg-info
> writing bento.egg-info/PKG-INFO
> writing top-level names to bento.egg-info/top_level.txt
> writing dependency_links to bento.egg-info/dependency_links.txt
> writing entry points to bento.egg-info/entry_points.txt
> writing manifest file 'bento.egg-info/SOURCES.txt'
> reading manifest file 'bento.egg-info/SOURCES.txt'
> writing manifest file 'bento.egg-info/SOURCES.txt'
> Copying bento.egg-info to 
/var/abs/local/devel/python-bento/pkg/usr/lib/python2.7/site-packages/bento-0.0.5-py2.7.egg-info
> running install_scripts
> Installing bentomaker script to /var/abs/local/devel/python-bento/pkg/usr/bin
> ==> Tidying install...
>  -> Purging other files...
>  -> Compressing man and info pages...
>  -> Stripping unneeded symbols from binaries and libraries...
> ==> Creating package...
>  -> Generating .PKGINFO file...
>  -> Compressing package...
> ==> Leaving fakeroot environment.
> ==> Finished making: python-bento 0.0.5-1 (Mon Oct  3 14:34:24 CEST 2011)
> [gour@atmarama python-bento] vim PKGBUILD
> Error detected while processing 
/home/gour/.vim/bundle/makegreen/plugin/makegreen.vim:
> line   79:
> E227: mapping already exists for \t
> Press ENTER or type command to continue
> [gour@atmarama python-bento] makepkg -f
> ==> Making package: python-bento 0.0.6-1 (Mon Oct  3 14:35:58 CEST 2011)
> ==> Checking runtime dependencies...
> ==> Checking buildtime dependencies...
> ==> Retrieving Sources...
>  -> Downloading bento-0.0.6.tar.gz...
> --2011-10-03 14:35:58-- 
 http://pypi.python.org/packages/source/b/bento/bento-0.0.6.tar.gz
> Resolving pypi.python.org... 82.94.164.168, 2001:888:2000:d::a8
> Connecting to pypi.python.org|82.94.164.168|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 530260 (518K) [application/x-gzip]
> Saving to: `bento-0.0.6.tar.gz.part'
>
> 100%[======================================================
> ============================================
> ===>] 530,260      385K/s in 1.3s
>
> 2011-10-03 14:36:00 (385 KB/s) - `bento-0.0.6.tar.gz.part' saved [530260/530260]
>
> ==> Validating source files with md5sums...
>    bento-0.0.6.tar.gz ... Passed
> ==> Extracting Sources...
>  -> Extracting bento-0.0.6.tar.gz with bsdtar
> ==> Removing existing pkg/ directory...
> ==> Entering fakeroot environment...
> ==> Starting build()...
> running build
> running config
> running install
> running build
> running config
> error: /usr/local/bin/bentomaker: Permission denied
> ==> ERROR: A failure occurred in build().
>    Aborting....
>
>
> The build function used in preparing the package is:
>
> build() {
>  cd $startdir/src/bento-$pkgver
>
>  python2 setup.py build || return 1
>  python2 setup.py install --optimize=1 --prefix=/usr --root=$startdir/pkg
> }
>

As I said, the code for destdir was added *after* the 0.6 release.
IOW, there are no release yet with this feature. It will be in the
next release.

cheers,

David

Re: [bento] Change to add a --destdir option to install

From:
Gour-Gadadhara Dasa
Date:
2011-10-04 @ 07:26
On Mon, 3 Oct 2011 20:15:10 +0100
David Cournapeau <cournape@gmail.com> wrote:

Hello David,

> > # This madness is used to support ubuntu/debian customization
> > prefix = "/usr/local"
> > base = "/usr"
> >
> > from bento/commands/configure.py
> 
> This codepath is only followed when --prefix is not given

The problem is that the following sequence:

python2 setup.py build || return 1
python2 setup.py install --optimize=1 --prefix=/usr --root=$startdir/pkg

which works for 0.0.5, fails with 0.0.6., iow, even if I issue the 
following command:

[gour@atmarama bento-0.0.6] python2 setup.py install  --prefix=/usr 
--root=/var/abs/local/devel/python-bento/pkg  
running install
running build
running config
error: /usr/local/bin/bentomaker: Permission denied

using --prefix, the build fails.

How do you explain failing of setup-based install?

> As I said, the code for destdir was added *after* the 0.6 release.

OK. That's another (--destdir) issue.

> IOW, there are no release yet with this feature. It will be in the
> next release.

OK.



Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

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

Re: [bento] Change to add a --destdir option to install

From:
David Cournapeau
Date:
2011-10-06 @ 07:59
On Tue, Oct 4, 2011 at 8:26 AM, Gour-Gadadhara Dasa <gour@atmarama.net> wrote:
> On Mon, 3 Oct 2011 20:15:10 +0100
> David Cournapeau <cournape@gmail.com> wrote:
>
> Hello David,
>
>> > # This madness is used to support ubuntu/debian customization
>> > prefix = "/usr/local"
>> > base = "/usr"
>> >
>> > from bento/commands/configure.py
>>
>> This codepath is only followed when --prefix is not given
>
> The problem is that the following sequence:
>
> python2 setup.py build || return 1
> python2 setup.py install --optimize=1 --prefix=/usr --root=$startdir/pkg
>
> which works for 0.0.5, fails with 0.0.6., iow, even if I issue the 
following command:
>
> [gour@atmarama bento-0.0.6] python2 setup.py install  --prefix=/usr 
--root=/var/abs/local/devel/python-bento/pkg
> running install
> running build
> running config
> error: /usr/local/bin/bentomaker: Permission denied
>
> using --prefix, the build fails.
>
> How do you explain failing of setup-based install?

--root was not handled the distutils compatibility layer. Could you
try the most recent master, this should be fixed ?

David

Re: [bento] Change to add a --destdir option to install

From:
Gour-Gadadhara Dasa
Date:
2011-10-06 @ 12:25
On Thu, 6 Oct 2011 08:59:36 +0100
David Cournapeau <cournape@gmail.com> wrote:

> > [gour@atmarama bento-0.0.6] python2 setup.py install  --prefix=/usr
> > --root=/var/abs/local/devel/python-bento/pkg running install
> > running build
> > running config
> > error: /usr/local/bin/bentomaker: Permission denied
> >
> > using --prefix, the build fails.
> >
> > How do you explain failing of setup-based install?
> 
> --root was not handled the distutils compatibility layer. Could you
> try the most recent master, this should be fixed ?

It works, but I do not know why it creates

/usr/local/bin/bentomaker ?


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

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

Re: [bento] Change to add a --destdir option to install

From:
David Cournapeau
Date:
2011-10-06 @ 20:35
On Thu, Oct 6, 2011 at 1:25 PM, Gour-Gadadhara Dasa <gour@atmarama.net> wrote:
> On Thu, 6 Oct 2011 08:59:36 +0100
> David Cournapeau <cournape@gmail.com> wrote:
>
>> > [gour@atmarama bento-0.0.6] python2 setup.py install  --prefix=/usr
>> > --root=/var/abs/local/devel/python-bento/pkg running install
>> > running build
>> > running config
>> > error: /usr/local/bin/bentomaker: Permission denied
>> >
>> > using --prefix, the build fails.
>> >
>> > How do you explain failing of setup-based install?
>>
>> --root was not handled the distutils compatibility layer. Could you
>> try the most recent master, this should be fixed ?
>
> It works, but I do not know why it creates
>
> /usr/local/bin/bentomaker ?

Could you give the exact command you were using (all arguments) ?

cheers,

David

Re: [bento] Change to add a --destdir option to install

From:
Gour-Gadadhara Dasa
Date:
2011-10-07 @ 06:54
On Thu, 6 Oct 2011 21:35:02 +0100
David Cournapeau <cournape@gmail.com> wrote:

> Could you give the exact command you were using (all arguments) ?

Here is the complete log:

[gour@atmarama bento-0.0.6] pwd
[gour@atmarama bento-0.0.6] python2 setup.py install --optimize=1 
--prefix=/usr --root=/var/abs/local/devel/python-bento/pkg     
running install
running build
running config

/var/abs/local/devel/python-bento/src/bento-0.0.6/bento/core/node_package.py:148:
UserWarning: extra source files glob entry 
'/var/abs/local/devel/python-bento/src/bento-0.0.6/bento.info' did not 
return any result
  warnings.warn("extra source files glob entry %r did not return any 
result" % (s,))


And I'm ended with:

[gour@atmarama usr] tree 
.
├── lib
│   └── python2.7
│       └── site-packages
│           ├── bento
│           │   ├── commands
│           │   │   ├── api.py
 [...]
│           │   └── __version.py
│           └── bentomakerlib
│               ├── bentomaker.py
│               ├── help.py
│               ├── __init__.py
│               └── package_cache.py
└── local
    ├── bin
    │   └── bentomaker
    └── share
        └── bento
            ├── commands
            │   ├── cli.exe
            │   └── wininst
            │       ├── wininst-7.1.exe
            │       ├── wininst-8.0.exe
            │       ├── wininst-9.0-amd64.exe
            │       └── wininst-9.0.exe
            └── parsetab

29 directories, 154 files

from where you can see that build process populated ../usr/local directory
as well as ../usr/lib.


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

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

Re: [bento] Change to add a --destdir option to install

From:
David Cournapeau
Date:
2011-10-10 @ 08:34
On Fri, Oct 7, 2011 at 7:54 AM, Gour-Gadadhara Dasa <gour@atmarama.net> wrote:
> On Thu, 6 Oct 2011 21:35:02 +0100
> David Cournapeau <cournape@gmail.com> wrote:
>
>> Could you give the exact command you were using (all arguments) ?
>
> Here is the complete log:
>
> [gour@atmarama bento-0.0.6] pwd
> [gour@atmarama bento-0.0.6] python2 setup.py install --optimize=1 
--prefix=/usr --root=/var/abs/local/devel/python-bento/pkg

Ok, so I understand what is going on, but I don't have a simple
solution. The issue is that I re-use distutils code here to follow
linux distributions modifications (e.g. dist-packages instead of
site-packages in debian/ubuntu), but this brings all sort of conflicts
with how bento define paths.

Could you create a new issue on github to track this ?

thanks,

David

Re: [bento] Change to add a --destdir option to install

From:
Gour-Gadadhara Dasa
Date:
2011-10-10 @ 17:12
On Mon, 10 Oct 2011 09:34:15 +0100
David Cournapeau <cournape@gmail.com> wrote:

> Could you create a new issue on github to track this ?

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


Sincerely,
Gour


-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

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