From 1e34739b64d384b87ee2c57027df596b464c79ab Mon Sep 17 00:00:00 2001 From: William Grzybowski 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) --- games/gnomesudoku/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'games/gnomesudoku') diff --git a/games/gnomesudoku/Makefile b/games/gnomesudoku/Makefile index d1e278835e99..ecc496dc5a2b 100644 --- a/games/gnomesudoku/Makefile +++ b/games/gnomesudoku/Makefile @@ -14,7 +14,7 @@ COMMENT= GNOME Sudoku game RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric \ ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging -USE_PYTHON= 2.5+ +USE_PYTHON= yes USE_PYDISTUTILS=yes USES= pathfix display USE_GNOME= gnomeprefix pygnome2 pygnomedesktop @@ -22,4 +22,10 @@ USE_GNOME= gnomeprefix pygnome2 pygnomedesktop PYDISTUTILS_PKGNAME= gnome-sudoku NO_STAGE= yes + + +post-patch: + @${REINPLACE_CMD} \ + -e 's,distutils\.command\.install ,setuptools\.command\.install ,' \ + ${WRKSRC}/tools/gsudoku_distutils.py .include -- cgit v1.2.3