1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] python-virtualenv: package default settings question
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20python-virtualenv%3A%20package%20default%20settings%0A%09question&In-Reply-To=%3C20120221155813.GE20159%40avicenna.ee.columbia.edu%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="012181.html">
<LINK REL="Next" HREF="012203.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] python-virtualenv: package default settings question</H1>
<B>Lev Givon</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20python-virtualenv%3A%20package%20default%20settings%0A%09question&In-Reply-To=%3C20120221155813.GE20159%40avicenna.ee.columbia.edu%3E"
TITLE="[Mageia-dev] python-virtualenv: package default settings question">lev at columbia.edu
</A><BR>
<I>Tue Feb 21 16:58:13 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="012181.html">[Mageia-dev] python-virtualenv: package default settings question
</A></li>
<LI>Next message: <A HREF="012203.html">[Mageia-dev] python-virtualenv: package default settings question
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#12193">[ date ]</a>
<a href="thread.html#12193">[ thread ]</a>
<a href="subject.html#12193">[ subject ]</a>
<a href="author.html#12193">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Received from Marja van Waes on Tue, Feb 21, 2012 at 04:42:20AM EST:
><i> On 20/02/12 20:15, Lev Givon wrote:
</I>><i> >See <A HREF="https://bugs.mageia.org/show_bug.cgi?id=3358#c3">https://bugs.mageia.org/show_bug.cgi?id=3358#c3</A>
</I>><i> >Anyone care to comment?
</I>><i> >
</I>><i> > L.G.
</I>><i> To make replying easier, here is the question from the above link:
</I>><i>
</I>><i> > By default, virtualenv creates virtual environments using setuptools rather
</I>><i> > than distribute. This causes virtualenv to complain if PYTHONDONTWRITEBYTECODE
</I>><i> > is set (which is the default in Mageia):
</I>><i>
</I>><i> > The PYTHONDONTWRITEBYTECODE environment variable is not compatible with
</I>><i> > setuptools. Either use --distribute or unset PYTHONDONTWRITEBYTECODE.
</I>><i>
</I>><i> > Do we effectively want to require users to explicitly set the variable in order
</I>><i> > to use virtualenv with its default settings? (If we do, I can add an
</I>><i> > installation message to the package to warn users to unset the variable
</I>><i> > themselves.)
</I>><i>
</I>><i>
</I>><i> To me current behaviour as described above sounds strange, even
</I>><i> irritating, but I'm not a packager and I don't even use the package,
</I>><i> so I don't know enough.
</I>><i>
</I>><i> @ Lev
</I>><i> I understand in Mandriva virtualenv the default settings can be used
</I>><i> without having to unset a variable, and that that doesn't cause
</I>><i> other problems. Is that correct?
</I>
The Mandriva package uses the same approach as the one in Mageia,
i.e., PYTHONDONTWRITEBYTECODE is unset within
/usr/bin/virtualenv so that it will run successfully without requiring
that the user explicitly unset the variable or run the script with a
specific flag.
Given that the variable is only set when virtualenv is run to create a
virtual environment and does not affect the variable's setting in a
user's session, I'm inclined to leave the package as-is.
><i> If so, and if no one cares to reply to this mail or in the bug
</I>><i> report, I think you can just go ahead and change the default
</I>><i> environment variable from PYTHONDONTWRITEBYTECODE to whatever
</I>><i> Mandriva's default is. If that causes any new problems, we'll find
</I>><i> out soon enough when the package is in cauldron ;)
</I>><i>
</I>><i> Regards,
</I>><i> Marja
</I>
L.G.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="012181.html">[Mageia-dev] python-virtualenv: package default settings question
</A></li>
<LI>Next message: <A HREF="012203.html">[Mageia-dev] python-virtualenv: package default settings question
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#12193">[ date ]</a>
<a href="thread.html#12193">[ thread ]</a>
<a href="subject.html#12193">[ subject ]</a>
<a href="author.html#12193">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|