svn commit: r407947 - head/devel/py-pip

Kubilay Kocak koobs at FreeBSD.org
Wed Feb 3 07:50:21 UTC 2016


Author: koobs
Date: Wed Feb  3 07:50:19 2016
New Revision: 407947
URL: https://svnweb.freebsd.org/changeset/ports/407947

Log:
  devel/py-pip: Add pkg-message user WARNING
  
  Add a pkg-message warning users not to use pip to install packages in
  the system-wide Python environment location. This should have been done
  a long time ago.
  
  While I'm here:
  
  - Add LICENSE_FILE
  - Enable NO_ARCH
  - Match *_DEPENDS versions to those in setup.py
  - Fix incorrect pytest-xdist package name match
  
  PR:		205881, 205819
  Reported by:	many
  Suggested by:	many
  MFH:		2016Q1

Added:
  head/devel/py-pip/pkg-message   (contents, props changed)
Modified:
  head/devel/py-pip/Makefile

Modified: head/devel/py-pip/Makefile
==============================================================================
--- head/devel/py-pip/Makefile	Wed Feb  3 07:35:54 2016	(r407946)
+++ head/devel/py-pip/Makefile	Wed Feb  3 07:50:19 2016	(r407947)
@@ -3,6 +3,7 @@
 
 PORTNAME=	pip
 PORTVERSION=	7.1.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -10,13 +11,14 @@ MAINTAINER=	python at FreeBSD.org
 COMMENT=	Tool for installing and managing Python packages
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 # Tests also need bzr, git, otherwise they fail
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \
 		${PYTHON_PKGNAMEPREFIX}pytest-capturelog>0:${PORTSDIR}/devel/py-pytest-capturelog \
 		${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:${PORTSDIR}/devel/py-pytest-timeout \
-		${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:${PORTSDIR}/devel/py-pytest-xdist \
-		${PYTHON_PKGNAMEPREFIX}virtualenv>=13.0.0:${PORTSDIR}/devel/py-virtualenv \
+		${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:${PORTSDIR}/devel/py-pytest-xdist \
+		${PYTHON_PKGNAMEPREFIX}virtualenv>=1.10:${PORTSDIR}/devel/py-virtualenv \
 		${PYTHON_PKGNAMEPREFIX}scripttest>=1.3:${PORTSDIR}/devel/py-scripttest \
 		${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock \
 		${PYTHON_PKGNAMEPREFIX}pretend>0:${PORTSDIR}/devel/py-pretend \
@@ -39,6 +41,8 @@ SHEBANG_FILES=	pip/__init__.py
 
 GH_ACCOUNT=	pypa
 
+NO_ARCH=	yes
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/build/sphinx/html && \

Added: head/devel/py-pip/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pip/pkg-message	Wed Feb  3 07:50:19 2016	(r407947)
@@ -0,0 +1,14 @@
+============================== !!!! WARNING !!!! ==========================
+
+pip MUST ONLY be used:
+
+ * With the --user flag, OR
+ * To install or manage Python packages in virtual environments
+
+Failure to follow this warning can and will result in an inconsistent
+system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
+cause errors.
+
+Avoid using pip as root unless you know what you're doing.
+
+============================== !!!! WARNING !!!! ==========================


More information about the svn-ports-all mailing list