3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00
z3/scripts
Dan Liew 4c11037d70 Fix setting the path to the Python package directory.
There were several problems with the existing implementation.

* When specifying ``--prefix`` the implementation would assume the
  path was ``$(PREFIX)/lib/python-<VERSION>/dist-packages``. This
  is incorrect. ``dist-packages`` is Debian (and its derivatives,
  i.e Ubuntu) specific and won't work on other Linux distributions
  such as Arch Linux.

* When generating the ``Makefile``, ``$(PREFIX)`` was only emitted
  during the Python installation when ``--prefix`` was passed on
  the command line. When ``--prefix`` was not passed the absolute
  path to the Python package directory was emitted. This is not
  very consistent.

This patch checks that the detected Python package directory lives
under the install prefix and emits an error if it does not as this
indicates that the installation will be broken. If the Python package
directory does live under the install prefix it replaces that prefix
with the ``$(PREFIX)`` variable when emitting the ``Makefile`` for
consistency with the other install commands.

If a user really wants to install to a particular Python package
directory they can force it with the newly added ``--pypkgdir=``
flag.
2015-11-28 19:03:05 +00:00
..
mk_copyright.py Python 3.x issues 2015-10-28 22:40:07 +00:00
mk_exception.py checkpoint 2012-10-23 12:12:59 -07:00
mk_make.py Added mk_win_dist.py script for generating Window .zip distribution files 2012-10-29 14:21:46 -07:00
mk_project.py remove deprecated user-theory plugins and other unused functionality from API 2015-11-20 08:43:27 -08:00
mk_unix_dist.py Fixed Python 2.x vs 3.x issues. 2015-11-19 23:24:04 +01:00
mk_util.py Fix setting the path to the Python package directory. 2015-11-28 19:03:05 +00:00
mk_win_dist.py Windows build fix 2015-11-20 09:57:05 +01:00
README updated docs 2012-10-25 18:46:37 -07:00
trackall.sh add more Copyright notes 2015-06-10 11:59:21 -07:00
update_api.py fix build script for update to name of get_error_msg 2015-11-19 08:33:27 -08:00
update_header_guards.py Python 3.x issues 2015-10-28 22:40:07 +00:00

Instructions for updating external Z3 API
-----------------------------------------

The python "macros": def_Type() and def_API() are used to add new types and function definitions to the Z3 API.
The .h files provided to `mk_bindings(API_files)` contain these definitions.
See src\api\z3_api.h for many examples.

The bindings for .Net and Python are generated when mk_make.py is invoked.