mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Recent changes to the build system mean that setting a custom
``--prefix=`` is likely to disable installing the Python bindings so the old instructions aren't helpful. Reword them and mention using ``DESTDIR``.
This commit is contained in:
parent
08610ae243
commit
f09fa3c87b
26
README.md
26
README.md
|
@ -49,8 +49,30 @@ the ``--prefix=`` command line option to change the install prefix. For example:
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
In this example, the Z3 Python bindings will be stored at ``/home/leo/lib/pythonX.Y/dist-packages``,
|
Note the above will typically disable the installation of the Python bindings
|
||||||
where X.Y corresponds to the python version in your system.
|
because the Python ``site-packages`` directory (e.g.
|
||||||
|
``/usr/lib/python3.5/site-packages/``) is not rooted in the install prefix and
|
||||||
|
installing outside of the install prefix is dangerous and misleading.
|
||||||
|
|
||||||
|
To avoid this issue you can use the ``DESTDIR`` makefile variable and leave the
|
||||||
|
install prefix as the default. The ``DESTDIR`` variable is prepended to the
|
||||||
|
install locations during ``make install`` and ``make uninstall`` and is intended
|
||||||
|
to allow ["staged installs"](https://www.gnu.org/prep/standards/html_node/DESTDIR.html).
|
||||||
|
Therefore it must always contain a trailing slash.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python scripts/mk_make.py
|
||||||
|
cd build
|
||||||
|
make
|
||||||
|
make install DESTDIR=/home/leo/
|
||||||
|
```
|
||||||
|
|
||||||
|
In this example, the Z3 Python bindings will be stored at
|
||||||
|
``/home/leo/lib/pythonX.Y/site-packages``
|
||||||
|
(``/home/leo/lib/pythonX.Y/dist-packages`` on Debian based Linux
|
||||||
|
distributions) where X.Y corresponds to the python version in your system.
|
||||||
|
|
||||||
To uninstall Z3, use
|
To uninstall Z3, use
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue