summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz>2012-10-06 22:23:22 +0000
committerwiz <wiz>2012-10-06 22:23:22 +0000
commitf43ca19acb830328f8f606d52eea49fc645eeb11 (patch)
tree3aae4788791212140ccb26e1e24928828217f7b7 /devel
parentd3028cdb4cc1d826d590e180f748e38e763e6dc8 (diff)
downloadpkgsrc-f43ca19acb830328f8f606d52eea49fc645eeb11.tar.gz
Import py-virtualenv-1.8.2 as devel/py-virtualenv.
virtualenv is a tool to create isolated Python environments. The basic problem being addressed is one of dependencies and versions, and indirectly permissions. Imagine you have an application that needs version 1 of LibFoo, but another application requires version 2. How can you use both these applications? If you install everything into /usr/lib/python2.7/site-packages (or whatever your platform's standard location is), it's easy to end up in a situation where you unintentionally upgrade an application that shouldn't be upgraded. Or more generally, what if you want to install an application and leave it be? If an application works, any change in its libraries or the versions of those libraries can break the application. Also, what if you can't install packages into the global site-packages directory? For instance, on a shared host. In all these cases, virtualenv can help you. It creates an environment that has its own installation directories, that doesn't share libraries with other virtualenv environments (and optionally doesn't access the globally installed libraries either).
Diffstat (limited to 'devel')
-rw-r--r--devel/py-virtualenv/DESCR22
-rw-r--r--devel/py-virtualenv/Makefile20
-rw-r--r--devel/py-virtualenv/PLIST18
-rw-r--r--devel/py-virtualenv/distinfo5
4 files changed, 65 insertions, 0 deletions
diff --git a/devel/py-virtualenv/DESCR b/devel/py-virtualenv/DESCR
new file mode 100644
index 00000000000..1bcf917025d
--- /dev/null
+++ b/devel/py-virtualenv/DESCR
@@ -0,0 +1,22 @@
+virtualenv is a tool to create isolated Python environments.
+
+The basic problem being addressed is one of dependencies and
+versions, and indirectly permissions. Imagine you have an application
+that needs version 1 of LibFoo, but another application requires
+version 2. How can you use both these applications? If you install
+everything into /usr/lib/python2.7/site-packages (or whatever your
+platform's standard location is), it's easy to end up in a situation
+where you unintentionally upgrade an application that shouldn't be
+upgraded.
+
+Or more generally, what if you want to install an application and
+leave it be? If an application works, any change in its libraries
+or the versions of those libraries can break the application.
+
+Also, what if you can't install packages into the global site-packages
+directory? For instance, on a shared host.
+
+In all these cases, virtualenv can help you. It creates an environment
+that has its own installation directories, that doesn't share
+libraries with other virtualenv environments (and optionally doesn't
+access the globally installed libraries either).
diff --git a/devel/py-virtualenv/Makefile b/devel/py-virtualenv/Makefile
new file mode 100644
index 00000000000..b6a610b1f55
--- /dev/null
+++ b/devel/py-virtualenv/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2012/10/06 22:23:22 wiz Exp $
+
+DISTNAME= virtualenv-1.8.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= http://pypi.python.org/packages/source/v/virtualenv/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://pypi.python.org/pypi/virtualenv
+COMMENT= Virtual Python Environment builder
+LICENSE= mit
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+REPLACE_PYTHON= virtualenv.py
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-virtualenv/PLIST b/devel/py-virtualenv/PLIST
new file mode 100644
index 00000000000..0edfee5a6f6
--- /dev/null
+++ b/devel/py-virtualenv/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2012/10/06 22:23:22 wiz Exp $
+bin/virtualenv
+bin/virtualenv-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/virtualenv.py
+${PYSITELIB}/virtualenv.pyc
+${PYSITELIB}/virtualenv.pyo
+${PYSITELIB}/virtualenv_support/__init__.py
+${PYSITELIB}/virtualenv_support/__init__.pyc
+${PYSITELIB}/virtualenv_support/__init__.pyo
+${PYSITELIB}/virtualenv_support/distribute-0.6.28.tar.gz
+${PYSITELIB}/virtualenv_support/pip-1.2.1.tar.gz
+${PYSITELIB}/virtualenv_support/setuptools-0.6c11-py${PYVERSSUFFIX}.egg
diff --git a/devel/py-virtualenv/distinfo b/devel/py-virtualenv/distinfo
new file mode 100644
index 00000000000..37d165e021f
--- /dev/null
+++ b/devel/py-virtualenv/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2012/10/06 22:23:22 wiz Exp $
+
+SHA1 (virtualenv-1.8.2.tar.gz) = 58c696ee6025402278f9c9b4705664e16fff07d6
+RMD160 (virtualenv-1.8.2.tar.gz) = e39dc7551f7caa54a41e5ad1bbae6777d616cd31
+Size (virtualenv-1.8.2.tar.gz) = 2168682 bytes