python plugin breaks data_files in setup.py

Bug #1631071 reported by Blake Rouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Sergio Schvezov

Bug Description

Previous python3 plugin placed data_files into the snap, new plugin wants to place them in the / root of the build machine.

    copying build/lib/maas/demo.py -> /home/blake/Code/maas/maas-snap-early/parts/maas/install/lib/python3.5/site-packages/maas
    running install_data
    copying etc/maas/drivers.yaml -> /etc/maas
    error: could not create '/etc/maas/drivers.yaml': Permission denied

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-qzcs5vfb-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-dz0p43th-record/install-record.txt --single-version-externally-managed --no-compile --user --prefix=" failed with error code 1 in /tmp/pip-qzcs5vfb-build/
Command '['/bin/sh', '/tmp/tmp80qny842', 'pip', 'install', '--user', '--no-compile', '--disable-pip-version-check', '--no-index', '--find-links', '/home/blake/Code/maas/maas-snap-early/parts/maas/packages', '.']' returned non-zero exit status 1

Tags: plugin
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → 2.20
Leo Arias (elopio)
tags: added: plugin
Revision history for this message
Leo Arias (elopio) wrote :

Hello Blake.

Can you please share your snapcraft.yaml, so we can verify if this bug is fixed before the release?

Thanks.

Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.