it is no longer possible to have a plainbox part with a python stage-package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Sergio Schvezov |
Bug Description
It has never been possible to combine a python part that installs packages using the python install script, with a part that installs python packages from the ubuntu archive. This causes many conflicts.
However, on the plainbox plugin the install script is called with a prefix (python3 manage.py install --prefix=
This week, in order to support python snaps in classic [1], we introduced to the python plugin a rewrite to /etc/python3.
To reproduce:
$ git clone https:/
$ cd /tmp/snapcraft/
Modify the snapcraft.yaml adding at the end:
stage-packages: [python3-petname]
$ /tmp/snapcraft/
Parts 'plainbox-local' and 'simple-
etc/
Changed in snapcraft: | |
importance: | Undecided → Medium |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 2.27 |
status: | New → In Progress |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
On Feb 11, 2017, at 03:45 AM, Leo Arias wrote:
>It has never been possible to combine a python part that installs
>packages using the python install script, with a part that installs
>python packages from the ubuntu archive. This causes many conflicts.
You might consider using the dirtbike package to turn Python packages from the
Ubuntu archive into wheels (i.e. "rewheel"). Then you could install the
wheels from the archive and the normal packages otherwise.
We use dirtbike (albeit sparingly) in order to support Built-Using
dependencies for pip and friends, so I know it works fairly well, at least for
the relatively simple pure-Python packages that pip depends on.