[New-bugs-announce] [issue17732] distutils.cfg Can Break venv

Nick Sloan report at bugs.python.org
Sun Apr 14 20:10:32 CEST 2013


New submission from Nick Sloan:

When distutils.cfg defines an install-lib, it will be used within virtual environments created using venv as well, which makes it impossible to install things with setup.py or similar.

Steps to reproduce:

Create a distutils.cfg file and set a value for install-lib.

Create a virtual environment: $pyvenv myvenv

Activate that environment: $source myvenv/bin/activate

Attempt to install something: $python distribute_setup.py

It will attempt to install in the lib-install directory, and should fail with an error that the directory is not on the python path. This issue affects python3 from the mac homebrew project, which bundles a distutil.cfg, thus breaking pyvenv by default.

----------
assignee: eric.araujo
components: Distutils
messages: 186942
nosy: eric.araujo, nicksloan, tarek
priority: normal
severity: normal
status: open
title: distutils.cfg Can Break venv
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17732>
_______________________________________


More information about the New-bugs-announce mailing list