mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 19:39:35 +03:00
9ef798b771
Now that 'pyzfs' is part of the ZFS codebase, it should be versioned the same as the rest of the source tree. This eliminates confusion on what version of the bindings are being used, especially for dependent Python projects that may use the Python dist metadata to identify compatible versions of pyzfs to work from. In addition, a trivial change to drop the unused requirements.txt file is included, simply because it's unused and a leftover from before it was imported into the ZFS codebase and wired into the autotools build scripts. Reviewed-by: loli10K <ezomori.nozomu@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes #8243
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
EXTRA_DIST = libzfs_core setup.py.in README LICENSE docs
|
|
|
|
if PYZFS_ENABLED
|
|
all:
|
|
|
|
all-local:
|
|
$(PYTHON) setup.py build
|
|
|
|
#
|
|
# On Debian (Ubuntu, and other downstream distros) the install location of
|
|
# Python packages is "../dist-packages" instead of "../site-packages" [1].
|
|
# The install location used by "$(PYTHON) setup.py install" must match the
|
|
# location specified in the ZFS specfile (RPM macro "%{python_sitelib}") to
|
|
# avoid errors during the rpmbuild process.
|
|
# However we cannot pass "--install-layout=deb" to the setup script here because
|
|
# it is not supported on RPM-based distros; we use the combination of
|
|
# "--prefix", "--root" and "--install-lib" parameters instead which should work
|
|
# on every supported system.
|
|
#
|
|
# [1] https://wiki.debian.org/Python#Deviations_from_upstream
|
|
#
|
|
# Using "--no-compile" will not generate .pyc files which, in turn, will not be
|
|
# packaged: this could result in failures during the uninstall phase if these
|
|
# files are later created by manually loading the Python modules.
|
|
#
|
|
install-exec-local:
|
|
$(PYTHON) $(srcdir)/setup.py install \
|
|
--prefix $(prefix) \
|
|
--root $(DESTDIR)/ \
|
|
--install-lib $(pythonsitedir) \
|
|
--single-version-externally-managed \
|
|
--verbose
|
|
|
|
clean: clean-local
|
|
rm -rf build/ pyzfs.egg-info/
|
|
|
|
clean-local:
|
|
|
|
check-local: all
|
|
endif
|