1 EXTRA_DIST = libzfs_core setup.py.in README LICENSE docs
7 $(PYTHON) setup.py build
10 # On Debian (Ubuntu, and other downstream distros) the install location of
11 # Python packages is "../dist-packages" instead of "../site-packages" [1].
12 # The install location used by "$(PYTHON) setup.py install" must match the
13 # location specified in the ZFS specfile (RPM macro "%{python_sitelib}") to
14 # avoid errors during the rpmbuild process.
15 # However we cannot pass "--install-layout=deb" to the setup script here because
16 # it is not supported on RPM-based distros; we use the combination of
17 # "--prefix", "--root" and "--install-lib" parameters instead which should work
18 # on every supported system.
20 # [1] https://wiki.debian.org/Python#Deviations_from_upstream
22 # Using "--no-compile" will not generate .pyc files which, in turn, will not be
23 # packaged: this could result in failures during the uninstall phase if these
24 # files are later created by manually loading the Python modules.
27 $(PYTHON) $(srcdir)/setup.py install \
30 --install-lib $(pythonsitedir) \
31 --single-version-externally-managed \
35 rm -rf build/ pyzfs.egg-info/