Packaging bitmask client for a linux distribution
Dears,
I would like to build the bitmaks client from source (not from pip but for the downloaded source files form this repository to distribute it for end-users) and I have questions. Before asking, I would like to make a few remarks about things that confused me (don't take them as critisism and forgieve my bad english).
-
bitmask_client v0.9.2 is flagged as deprecated and bitmask-dev v0.10.x is flagged as under development. Where is the stable client? (okay it's the 10.0.7, but this is confusing, isn't it?)
-
8 months ago, I did raise an issue on leap_pycommon. Althought it is said that this project is under active development, nobody had a look at the issue to triage it as valid/invalid or to give it a priority. It's only because I got a notification a month ago when someone made a commit on this repository that I realized that the project is not dead. I wasn't looking at bitmask since according to my understanding this is the very first thing to build.
I raised the above issue because I am quite surprised to see that the new bitmask client 0.10.x is still fully build in python 2 while python 2 will reach end of life in ~18 months. As I want to start building the client now, do you advise me to use python 2 or should it already work with python 3 ?
That was my remarks/preliminary questions.
Now here is what I did :
I did build leap_pycommon
0.6.3 from here
I have downloaded bitmask-dev
0.10.7 from here
From the root directory of bitmask-dev, I ran the following commands
### Build section
python setup.py build
pushd ui/pydist
npm install
npm run build:production
python setup.py build
popd
### Install section
python setup.py install --root="/my/destination/path"
pushd ui/pydist
python setup.py install --root="/my/destination/path"
popd
And when I start bitmaskd
, here is what I have in /~/.config/leap/bitmask.log
2018-08-03T18:56:53+0200 [-] Removing stale pidfile /home/py/.config/leap/bitmaskd.pid
2018-08-03T18:56:53+0200 [-] Loading /usr/lib/python2.7/site-packages/leap/bitmask/core/bitmaskd.tac...
2018-08-03T18:56:53+0200 [-] Loaded.
2018-08-03T18:56:53+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 17.9.0 (/usr/bin/python2.7 2.7.15) starting up.
2018-08-03T18:56:53+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor.
2018-08-03T18:56:53+0200 [leap.bitmask.core._session.SessionService#info] Starting Session Service
2018-08-03T18:56:53+0200 [leap.bitmask.vpn.helpers#error] No bitmask-root in system!
2018-08-03T18:56:53+0200 [leap.bitmask.vpn.helpers#error] No polkit file in system!
2018-08-03T18:56:53+0200 [leap.bitmask.core._zmq#info] Starting ZMQ dispatcher
2018-08-03T18:56:53+0200 [leap.bitmask.core.web.service#warn] bitmask_js not found, serving bitmask.core ui
2018-08-03T18:56:53+0200 [-] Site starting on 7070
2018-08-03T18:56:53+0200 [twisted.web.server.Site#info] Starting factory <twisted.web.server.Site instance at 0x7fb3957a35f0>
In case it can help, here is what has been installed from bitmask-dev.
I'm stuck here... Could you please let me know what I miss/what I did wrong ?
Thank you very much!