pip fails when project requirement result binary already exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to Snap the JoinMarket project on Github. I noticed that when running snapcraft for the second time, would fail because a result binary already exists, and pip didn't have a `--exists-action` set.
In the patch, I'm not sure if it would be better to (i)gnore or (w)ipe for the default action.
I've included a patch which fixes the issue for me. I also have included the error message I am getting, along with my snapcraft.yml.
Error message:
```
Updating pull step for joinmarket (source changed)
Obtaining file://
The file /root/parts/
Traceback (most recent call last):
File "/root/
status = self.run(options, args)
File "/root/
resolver.
File "/root/
discovered_
File "/root/
abstract_dist = self._get_
File "/root/
return self.preparer.
File "/root/
req.
File "/root/
display_
File "/root/
return ask(message, options)
File "/root/
response = input(message)
EOFError: EOF when reading a line
Failed to run '/root/
```
snapcraft.yaml
```
name: joinmarket
base: core18
version: master
summary: Software to assist in creating bitcoin CoinJoin transactions
description: |
JoinMarket is software to create a special kind of bitcoin transaction called a CoinJoin transaction. It's aim is to improve the confidentiality and privacy of bitcoin transactions.
confinement: devmode
grade: devel
#icon: icon.png
apps:
joinmarket-qt:
extensions:
- kde-neon
command: usr/bin/jm
plugs:
- network
- network-bind
- desktop
- desktop-legacy
- x11
- wayland
- home
parts:
joinmarket:
plugin: python
source: .
requirements:
- requirements/
override-build: |
snapcraftctl build
pwd
ls -alh
#cd ../install
mkdir -p /root/parts/
cp -rp /root/parts/
mv /root/parts/
# Install desktop launcher
launchers:
plugin: dump
source: .
organize:
'snap/jm': usr/bin/jm
after:
- joinmarket
```
summary: |
- pip fails when project requirement result binary already exsists + pip fails when project requirement result binary already exists |
description: | updated |