From 781e42a27d143c9dd7bb035b0e0230c7c1b12e88 Mon Sep 17 00:00:00 2001 From: wg Date: Sun, 15 Dec 2013 16:22:17 +0000 Subject: Use setuptools for all Python ports. Setuptools is the preferred method to manage Python distributions after many changes to the packaging ecosystem over the past couple of years. Only ports using USE_PYDISTUTILS= yes are affected by this commit, ports using USE_PYDISTUTILS= easy_install remains the same however this usage is now deprecated and should be converted to USE_PYDISTUTILS= yes. Some Python distributions do not work with setuptools out of the box because they extend the install command from distutils and not setuptools, and so they need to be patched accordingly. pip (which leverages setuptools) works around the issue by using eggs, however we want to get rid of those as well, as support for "flat" installation is unavailable or has other issues associated with it. This work allows us to unify how python packages are built, ensure that Python distributions are installed consistently, reduces complexity for Python port maintainers and paves the way for simplifying the Python ports framework in the future. With hat on: python Reviewed by: koobs, antoine Exp-run: bdrewery Approved by: bdrewery (portmgr) --- net/py-ldaptor/Makefile | 2 ++ net/py-ldaptor/files/patch-setup.py | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 net/py-ldaptor/files/patch-setup.py (limited to 'net') diff --git a/net/py-ldaptor/Makefile b/net/py-ldaptor/Makefile index d98357531468..f0aabb88c892 100644 --- a/net/py-ldaptor/Makefile +++ b/net/py-ldaptor/Makefile @@ -21,6 +21,8 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGVERSION= 0.0.0 PYDISTUTILS_PKGNAME= ldaptor +PYDISTUTILS_INSTALL_TARGET= install_locale install +PYDISTUTILS_BUILD_TARGET= build_locale build NO_STAGE= yes .include diff --git a/net/py-ldaptor/files/patch-setup.py b/net/py-ldaptor/files/patch-setup.py new file mode 100644 index 000000000000..758ad1db1e06 --- /dev/null +++ b/net/py-ldaptor/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2013-12-13 13:49:46.929425897 -0200 ++++ setup.py 2013-12-13 13:49:58.999423613 -0200 +@@ -154,7 +154,6 @@ + 'build_locale': build_locale, + 'clean': clean, + 'clean_locale': clean_locale, +- 'install': install, + 'install_locale': install_locale, + }, + -- cgit