Show More
@@ -12,23 +12,21 functionality. | |||
|
12 | 12 | |
|
13 | 13 | # Building |
|
14 | 14 | |
|
15 | This project currently requires an unreleased version of PyOxidizer | |
|
16 | (0.7.0-pre). For best results, build the exact PyOxidizer commit | |
|
17 | as defined in the `pyoxidizer.bzl` file: | |
|
15 | First, acquire and build a copy of PyOxidizer; you probably want to do this in | |
|
16 | some directory outside of your clone of Mercurial: | |
|
18 | 17 | |
|
19 | 18 | $ git clone https://github.com/indygreg/PyOxidizer.git |
|
20 | 19 | $ cd PyOxidizer |
|
21 | $ git checkout <Git commit from pyoxidizer.bzl> | |
|
22 | 20 | $ cargo build --release |
|
23 | 21 | |
|
24 |
Then build this Rust project using the built `pyoxidizer` executable: |
|
|
22 | Then build this Rust project using the built `pyoxidizer` executable: | |
|
25 | 23 | |
|
26 | $ /path/to/pyoxidizer/target/release/pyoxidizer build | |
|
24 | $ /path/to/pyoxidizer/target/release/pyoxidizer build --release | |
|
27 | 25 | |
|
28 | 26 | If all goes according to plan, there should be an assembled application |
|
29 |
under `build/<arch>/ |
|
|
27 | under `build/<arch>/release/app/` with an `hg` executable: | |
|
30 | 28 | |
|
31 |
$ build/x86_64-unknown-linux-gnu/ |
|
|
29 | $ build/x86_64-unknown-linux-gnu/release/app/hg version | |
|
32 | 30 | Mercurial Distributed SCM (version 5.3.1+433-f99cd77d53dc+20200331) |
|
33 | 31 | (see https://mercurial-scm.org for more information) |
|
34 | 32 | |
@@ -46,5 +44,5 Python interpreter can't access them! To | |||
|
46 | 44 | to the Mercurial source directory. e.g.: |
|
47 | 45 | |
|
48 | 46 | $ cd /path/to/hg/src/tests |
|
49 |
$ PYTHONPATH=`pwd`/.. python3. |
|
|
50 |
--with-hg `pwd`/../rust/hgcli/build/x86_64-unknown-linux-gnu/ |
|
|
47 | $ PYTHONPATH=`pwd`/.. python3.9 run-tests.py \ | |
|
48 | --with-hg `pwd`/../rust/hgcli/build/x86_64-unknown-linux-gnu/release/app/hg |
General Comments 0
You need to be logged in to leave comments.
Login now