[Sugar-devel] [ASLO] Release TamTam Edit-68

Peter Robinson pbrobinson at gmail.com
Fri Dec 26 09:57:21 EST 2014

On Tue, Dec 23, 2014 at 4:34 PM, Sugar Labs Activities
<activities at sugarlabs.org> wrote:
> Activity Homepage:
> http://activities.sugarlabs.org/addon/4059
> Sugar Platform:
> 0.82 - 0.102
> Download Now:
> http://activities.sugarlabs.org/downloads/file/29045/tamtamedit-68.xo
> Release notes:
> Make csound config compatible with Fedora 20
> Add information about the repository

I've spent a few moments to see if I could make the TamTam suite build
as a rpm but it seems the install process doesn't honor the --prefix

I've tried the following as per the README file:
DESTDIR=<dest-dir> ./setup.py install

And the following as per all the other activities:
./setup.py install --prefix=$RPM_BUILD_ROOT%{sugaractivitydir}

But neither seem to honor the prefix and I get the following as it
just tries to install it straight into /usr anyway:

+ ./setup.py install
-- build Edit activity
-- install --prefix=/usr Edit activity
Install common/Resources/Images/miniTam.png to
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
  File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",
line 403, in start
    globals()['cmd_' + args[0]](config, args[1:])
  File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",
line 326, in cmd_install
  File "/usr/lib/python2.7/site-packages/sugar/activity/bundlebuilder.py",
line 257, in install
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied:
Traceback (most recent call last):
  File "./setup.py", line 160, in <module>
    walk_activities(['build'], ['install', '--prefix=%s/usr' % destdir])
  File "./setup.py", line 91, in walk_activities
  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', 'setup.py',
'install', '--prefix=/usr']' returned non-zero exit status 1
error: Bad exit status from /var/tmp/rpm-tmp.fEqWqH (%install)

More information about the Sugar-devel mailing list