BSD Ports

devel/py-virtualenv 21.7.9 NetBSD

Virtual Python Environment builder

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
7aa32a1376
License
mit
Categories
devel, python
Package size
3928.1 KiB, 6436.1 KiB installed

Description

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).

In the other systems

SystemPortVersion
NetBSDdevel/py-virtualenv21.7.9
FreeBSDdevel/py-virtualenv21.14.12
OpenBSDdevel/py-virtualenv21.14.5
DragonFlydevel/py-virtualenv20.29.3
MidnightBSDdevel/py-virtualenv20.26.0_1
HardenedBSDdevel/py-virtualenv21.13.0
GhostBSDdevel/py-virtualenv21.9.0

Install

Binary package:

pkgin install py311-virtualenv

From pkgsrc:

cd /usr/pkgsrc/devel/py-virtualenv && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_6421.7.9
NetBSD 10.1 aarch6421.4.0
SmartOS / illumos x86_6421.14.8
macOS 15 arm6421.14.8

Dependencies

Run dependencies 5

Configuration

No options to configure.

Service scripts
none
Flavors
py312-virtualenv-21.7.9, py313-virtualenv-21.7.9, py314-virtualenv-21.7.9

Commit history 6

DateCommitCreditsLog message
7aa32a1376 adam py-virtualenv: updated to 21.14.8
Bugfixes - 21.14.8 Activate PowerShell environments whose path contains square brackets, and read the environment’s own pyvenv.cfg instead of whichever file the path matches as a wildcard pattern.
ed6ccdc52d adam py-virtualenv: updated to 21.14.7
Bugfixes - 21.14.7 Escape the environment name in the bash activator for both of bash’s PS1 passes, so a name or --prompt value with a backslash before $(...) or backticks no longer runs as a command each time bash draws the prompt
27e9b7894e adam py-virtualenv: updated to 21.7.9
Bugfixes - 21.7.9 Replace dangling symlinks, including interpreter aliases, when recreating an environment. This prevents FileExistsError with --symlinks and writes outside the environment with --copies Ignore malformed or unreadable virtualenv.ini files and report the error in the log and --help. Accept a UTF-8 byte order mark, as written by PowerShell 5 and older Notepad versions
3351d60385 adam py-virtualenv: updated to 21.7.8
Bugfixes - 21.7.8 A missing source needed by both install modes now disables the builtin creator through meta.error. The check compared RefWhen values against RefMust members, so creation went on to fail with a FileNotFoundError or a dangling symlink
dc4f2e7372 adam py-virtualenv: updated to 21.7.4
Bugfixes - 21.7.4 Upgrade embedded wheels: setuptools to 84.0.0 from 83.0.0

The latest 5 of 6 in the history this site was built from.