2017-05-09 21:57:52 +02:00
|
|
|
# PyBitmessage Installation Instructions
|
2023-09-14 22:28:44 +02:00
|
|
|
- Binary (64bit, no separate installation of dependencies required)
|
2024-06-08 23:36:32 +02:00
|
|
|
- Windows: https://artifacts.bitmessage.at/winebuild/
|
2023-09-14 22:28:44 +02:00
|
|
|
- Linux AppImages: https://artifacts.bitmessage.at/appimage/
|
2024-05-19 15:44:45 +02:00
|
|
|
- Linux snaps: https://artifacts.bitmessage.at/snap/
|
2023-09-14 22:28:44 +02:00
|
|
|
- Mac (not up to date): https://github.com/Bitmessage/PyBitmessage/releases/tag/v0.6.1
|
2021-11-15 16:11:57 +01:00
|
|
|
- Source
|
2023-09-14 22:28:44 +02:00
|
|
|
`git clone git://github.com/Bitmessage/PyBitmessage.git`
|
2021-11-15 16:11:57 +01:00
|
|
|
|
2024-05-19 15:44:45 +02:00
|
|
|
## Notes on the AppImages
|
|
|
|
|
|
|
|
The [AppImage](https://docs.appimage.org/introduction/index.html)
|
|
|
|
is a bundle, built by the
|
|
|
|
[appimage-builder](https://github.com/AppImageCrafters/appimage-builder) from
|
|
|
|
the Ubuntu Bionic deb files, the sources and `bitmsghash.so`, precompiled for
|
|
|
|
3 architectures, using the `packages/AppImage/AppImageBuilder.yml` recipe.
|
|
|
|
|
|
|
|
When you run the appimage the bundle is loop mounted to a location like
|
|
|
|
`/tmp/.mount_PyBitm97wj4K` with `squashfs-tools`.
|
|
|
|
|
|
|
|
The appimage name has several informational filds:
|
|
|
|
```
|
|
|
|
PyBitmessage-<VERSION>-g<COMMITHASH>[-alpha]-<ARCH>.AppImage
|
|
|
|
```
|
|
|
|
|
|
|
|
E.g. `PyBitmessage-0.6.3.2-ge571ba8a-x86_64.AppImage` is an appimage, built from
|
|
|
|
the `v0.6` for x86_64 and `PyBitmessage-0.6.3.2-g9de2aaf1-alpha-aarch64.AppImage`
|
|
|
|
is one, built from some development branch for arm64.
|
|
|
|
|
|
|
|
You can also build the appimage with local code. For that you need installed
|
|
|
|
docker:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ docker build -t bm-appimage -f .buildbot/appimage/Dockerfile .
|
|
|
|
$ docker run -t --rm -v "$(pwd)"/dist:/out bm-appimage .buildbot/appimage/build.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
The appimages should be in the dist dir.
|
|
|
|
|
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
## Helper Script for building from source
|
|
|
|
Go to the directory with PyBitmessage source code and run:
|
|
|
|
```
|
|
|
|
python checkdeps.py
|
|
|
|
```
|
2023-09-14 22:28:44 +02:00
|
|
|
If there are missing dependencies, it will explain you what is missing
|
|
|
|
and for many Unix-like systems also what you have to do to resolve it. You need
|
|
|
|
to repeat calling the script until you get nothing mandatory missing. How you
|
|
|
|
then run setuptools depends on whether you want to install it to
|
|
|
|
user's directory or system.
|
2013-08-01 21:08:45 +02:00
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
### If checkdeps fails, then verify manually which dependencies are missing from below
|
2015-01-14 15:19:06 +01:00
|
|
|
Before running PyBitmessage, make sure you have all the necessary dependencies
|
2013-08-01 21:08:45 +02:00
|
|
|
installed on your system.
|
|
|
|
|
2023-09-14 22:28:44 +02:00
|
|
|
These dependencies may not be available on a recent OS and PyBitmessage may not
|
|
|
|
build on such systems. Here's a list of dependencies needed for PyBitmessage
|
|
|
|
based on operating system
|
2013-08-01 21:08:45 +02:00
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
For Debian-based (Ubuntu, Raspbian, PiBang, others)
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2023-09-14 22:28:44 +02:00
|
|
|
python2.7 openssl libssl-dev python-msgpack python-qt4 python-six
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2021-11-15 16:11:57 +01:00
|
|
|
For Arch Linux
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2023-09-14 22:28:44 +02:00
|
|
|
python2 openssl python2-pyqt4 python-six
|
2021-11-15 16:11:57 +01:00
|
|
|
```
|
|
|
|
For Fedora
|
|
|
|
```
|
2023-09-14 22:28:44 +02:00
|
|
|
python python-qt4 openssl-compat-bitcoin-libs python-six
|
2021-11-15 16:11:57 +01:00
|
|
|
```
|
|
|
|
For Red Hat Enterprise Linux (RHEL)
|
|
|
|
```
|
2023-09-14 22:28:44 +02:00
|
|
|
python python-qt4 openssl-compat-bitcoin-libs python-six
|
2021-11-15 16:11:57 +01:00
|
|
|
```
|
|
|
|
For GNU Guix
|
|
|
|
```
|
|
|
|
python2-msgpack python2-pyqt@4.11.4 python2-sip openssl python-six
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
## setuptools
|
2023-09-14 22:28:44 +02:00
|
|
|
This is now the recommended and in most cases the easiest way for
|
|
|
|
installing PyBitmessage.
|
2013-08-01 21:08:45 +02:00
|
|
|
|
2023-09-14 22:28:44 +02:00
|
|
|
There are 2 options for installing with setuptools: root and user.
|
2013-08-01 21:08:45 +02:00
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
### as root:
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2021-11-15 16:11:57 +01:00
|
|
|
python setup.py install
|
|
|
|
pybitmessage
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
### as user:
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2021-11-15 16:11:57 +01:00
|
|
|
python setup.py install --user
|
|
|
|
~/.local/bin/pybitmessage
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
|
|
|
|
2023-09-14 22:28:44 +02:00
|
|
|
## pip venv (daemon):
|
2021-11-15 16:11:57 +01:00
|
|
|
Create virtualenv with Python 2.x version
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2021-11-15 16:11:57 +01:00
|
|
|
virtualenv -p python2 env
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
Activate env
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
2021-11-15 16:11:57 +01:00
|
|
|
source env/bin/activate
|
2013-08-01 21:08:45 +02:00
|
|
|
```
|
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
Build & run pybitmessage
|
|
|
|
```
|
2023-09-14 22:28:44 +02:00
|
|
|
pip install .
|
|
|
|
pybitmessage -d
|
2021-11-15 16:11:57 +01:00
|
|
|
```
|
2017-05-09 21:57:52 +02:00
|
|
|
|
2021-11-15 16:11:57 +01:00
|
|
|
## Alternative way to run PyBitmessage, without setuptools (this isn't recommended)
|
2023-09-14 22:28:44 +02:00
|
|
|
run `./start.sh`.
|