pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-virtualenv Import py-virtualenv-1.8.2 as deve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0f52704c333
branches:  trunk
changeset: 609603:f0f52704c333
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Oct 06 22:23:22 2012 +0000

description:
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:

 devel/py-virtualenv/DESCR    |  22 ++++++++++++++++++++++
 devel/py-virtualenv/Makefile |  20 ++++++++++++++++++++
 devel/py-virtualenv/PLIST    |  18 ++++++++++++++++++
 devel/py-virtualenv/distinfo |   5 +++++
 4 files changed, 65 insertions(+), 0 deletions(-)

diffs (81 lines):

diff -r c51ca6589cfc -r f0f52704c333 devel/py-virtualenv/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-virtualenv/DESCR Sat Oct 06 22:23:22 2012 +0000
@@ -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 -r c51ca6589cfc -r f0f52704c333 devel/py-virtualenv/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-virtualenv/Makefile      Sat Oct 06 22:23:22 2012 +0000
@@ -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@localhost
+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 -r c51ca6589cfc -r f0f52704c333 devel/py-virtualenv/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-virtualenv/PLIST Sat Oct 06 22:23:22 2012 +0000
@@ -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 -r c51ca6589cfc -r f0f52704c333 devel/py-virtualenv/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-virtualenv/distinfo      Sat Oct 06 22:23:22 2012 +0000
@@ -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



Home | Main Index | Thread Index | Old Index