Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/virtualenv/, dev-python/virtualenv/files/
Date: Wed, 03 May 2017 07:37:51
Message-Id: 1493797050.737af3adb605a631938fb9f1bd5472cc492da6db.mgorny@gentoo
1 commit: 737af3adb605a631938fb9f1bd5472cc492da6db
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 3 06:25:47 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 3 07:37:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=737af3ad
7
8 dev-python/virtualenv: Clean old versions up
9
10 dev-python/virtualenv/Manifest | 3 -
11 .../virtualenv-1.8.2-no-versioned-script.patch | 10 --
12 .../virtualenv-13.1.2-PYTHONPATH-backport.patch | 144 ---------------------
13 dev-python/virtualenv/virtualenv-13.1.2-r1.ebuild | 51 --------
14 dev-python/virtualenv/virtualenv-13.1.2.ebuild | 50 -------
15 dev-python/virtualenv/virtualenv-14.0.6.ebuild | 50 -------
16 dev-python/virtualenv/virtualenv-15.0.3.ebuild | 49 -------
17 7 files changed, 357 deletions(-)
18
19 diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
20 index 033ccfd7969..8979565d437 100644
21 --- a/dev-python/virtualenv/Manifest
22 +++ b/dev-python/virtualenv/Manifest
23 @@ -1,4 +1 @@
24 -DIST virtualenv-13.1.2.tar.gz 1704701 SHA256 438a9933dac2e6ef2e4270fe82435f9c29f933f05e2c5840a7b45e342b6292f8 SHA512 e58f0b1d46174d61b0ef6703020806208f34291c5490fabf29d3b82a03ba89a7caeb377aac44549f6c0ffe2e445786e16dcd67593b7b8d3b1fae0d9e8c8ef124 WHIRLPOOL 03fe0181ebb2d4becb357a740cc3f743526a087e03c03f5e20abac6a54a2701865c89f9f6023ae996d3ca032b08d28e1048747dc8ea1740316f330180f0f5161
25 -DIST virtualenv-14.0.6.tar.gz 1799312 SHA256 ce61e5d05e3532a8d910663c5ab92ed4c226c3daaba903f1ada281d96fabec98 SHA512 86fae16be973c8a981b106b22fec74909de225b70b7a486108ae769385a573087d64beb8963373f35a444a9baf0a1805c0035313f600655629dd8a03850c51fb WHIRLPOOL f4891ac11d2d2ca889e6b2eea4256c8f8628a59e205a20c022e050e37d3baebde221dcbb02fae7cdeb8d088d1dad30734a1471d37b658b7f13c3895287bc4769
26 -DIST virtualenv-15.0.3.tar.gz 1847120 SHA256 8b230f01701eee0bfa45a7dc6ff19397abd92c3d50728f08e2236754797fdc01 SHA512 2d7223d59062dae7da8e81ca0463e4dd526faee01b48d2c42e39d7ada328a819e454a96c2380c200dba434f62a7cb1c612eff13815306837f2362bc5e658bae0 WHIRLPOOL c4c4539b44e05f234bd6fdfbb6568159a5b55edfd81e4920dbb4f1606dd8e77f5696c818afa8e1bc4eac28600303a5b2da1418fb3e730c64c7c5489f912d4b68
27 DIST virtualenv-15.1.0.tar.gz 1865011 SHA256 aea627d114a3863d6374c5a3fc3cdd08907e0ac951cf93b458e5ba5998c516de SHA512 46c313fe855483cf42def0ddb319df7513bb00ea2c1570efaf1236b4e0074df40d574f3858a3d3760db988b9021ca2046c40a355cc5a3ae32a2802d6120bf255 WHIRLPOOL de8dd66fdd004ad9c8e866eaa7bcd701b16b6f7c185ebe73a7681b3600ae4f55996b9f8e321ef51bf85046283a2e4bf948ffe2b10218190ecb334351f92c57b3
28
29 diff --git a/dev-python/virtualenv/files/virtualenv-1.8.2-no-versioned-script.patch b/dev-python/virtualenv/files/virtualenv-1.8.2-no-versioned-script.patch
30 deleted file mode 100644
31 index 040e36794ba..00000000000
32 --- a/dev-python/virtualenv/files/virtualenv-1.8.2-no-versioned-script.patch
33 +++ /dev/null
34 @@ -1,10 +0,0 @@
35 ---- pypa-virtualenv-350c45d/setup.py
36 -+++ pypa-virtualenv-350c45d/setup.py
37 -@@ -9,7 +9,6 @@
38 - 'entry_points': {
39 - 'console_scripts': [
40 - 'virtualenv=virtualenv:main',
41 -- 'virtualenv-%s.%s=virtualenv:main' % sys.version_info[:2]
42 - ],
43 - },
44 - 'zip_safe': False,
45
46 diff --git a/dev-python/virtualenv/files/virtualenv-13.1.2-PYTHONPATH-backport.patch b/dev-python/virtualenv/files/virtualenv-13.1.2-PYTHONPATH-backport.patch
47 deleted file mode 100644
48 index 0e48643a85c..00000000000
49 --- a/dev-python/virtualenv/files/virtualenv-13.1.2-PYTHONPATH-backport.patch
50 +++ /dev/null
51 @@ -1,144 +0,0 @@
52 - docs/changes.rst | 3 ++
53 - virtualenv.py | 92 +++++++++++++++++++++++++++++---------------------------
54 - 2 files changed, 50 insertions(+), 45 deletions(-)
55 -
56 -diff --git a/docs/changes.rst b/docs/changes.rst
57 -index 80c3dc1..1d9c1fe 100644
58 ---- a/docs/changes.rst
59 -+++ b/docs/changes.rst
60 -@@ -1,6 +1,9 @@
61 - Release History
62 - ===============
63 -
64 -+* Remove virtualenv file's path from directory when executing with a new
65 -+ python. Fixes issue #779, #763 (PR #805)
66 -+
67 - 13.1.2 (2015-08-23)
68 - ~~~~~~~~~~~~~~~~~~~
69 -
70 -diff --git a/virtualenv.py b/virtualenv.py
71 -index da25205..64e70d4 100755
72 ---- a/virtualenv.py
73 -+++ b/virtualenv.py
74 -@@ -5,9 +5,22 @@
75 - __version__ = "13.1.2"
76 - virtualenv_version = __version__ # legacy
77 -
78 --import base64
79 --import sys
80 - import os
81 -+import sys
82 -+
83 -+# If we are running in a new interpreter to create a virtualenv,
84 -+# we do NOT want paths from our existing location interfering with anything,
85 -+# So we remove this file's directory from sys.path - most likely to be
86 -+# the previous interpreter's site-packages. Solves #705, #763, #779
87 -+if os.environ.get('VIRTUALENV_INTERPRETER_RUNNING'):
88 -+ del_paths = []
89 -+ for path in sys.path:
90 -+ if os.path.realpath(os.path.dirname(__file__)) == os.path.realpath(path):
91 -+ del_paths.append(path)
92 -+ for path in del_paths:
93 -+ sys.path.remove(path)
94 -+
95 -+import base64
96 - import codecs
97 - import optparse
98 - import re
99 -@@ -23,6 +36,11 @@ import struct
100 - import subprocess
101 - import tarfile
102 -
103 -+try:
104 -+ import ConfigParser
105 -+except ImportError:
106 -+ import configparser as ConfigParser
107 -+
108 - if sys.version_info < (2, 6):
109 - print('ERROR: %s' % sys.exc_info()[1])
110 - print('ERROR: this script requires Python 2.6 or greater.')
111 -@@ -33,11 +51,6 @@ try:
112 - except NameError:
113 - basestring = str
114 -
115 --try:
116 -- import ConfigParser
117 --except ImportError:
118 -- import configparser as ConfigParser
119 --
120 - join = os.path.join
121 - py_version = 'python%s.%s' % (sys.version_info[0], sys.version_info[1])
122 -
123 -@@ -1096,45 +1109,34 @@ def change_prefix(filename, dst_prefix):
124 -
125 - def copy_required_modules(dst_prefix, symlink):
126 - import imp
127 -- # If we are running under -p, we need to remove the current
128 -- # directory from sys.path temporarily here, so that we
129 -- # definitely get the modules from the site directory of
130 -- # the interpreter we are running under, not the one
131 -- # virtualenv.py is installed under (which might lead to py2/py3
132 -- # incompatibility issues)
133 -- _prev_sys_path = sys.path
134 -- if os.environ.get('VIRTUALENV_INTERPRETER_RUNNING'):
135 -- sys.path = sys.path[1:]
136 -- try:
137 -- for modname in REQUIRED_MODULES:
138 -- if modname in sys.builtin_module_names:
139 -- logger.info("Ignoring built-in bootstrap module: %s" % modname)
140 -- continue
141 -- try:
142 -- f, filename, _ = imp.find_module(modname)
143 -- except ImportError:
144 -- logger.info("Cannot import bootstrap module: %s" % modname)
145 -+
146 -+ for modname in REQUIRED_MODULES:
147 -+ if modname in sys.builtin_module_names:
148 -+ logger.info("Ignoring built-in bootstrap module: %s" % modname)
149 -+ continue
150 -+ try:
151 -+ f, filename, _ = imp.find_module(modname)
152 -+ except ImportError:
153 -+ logger.info("Cannot import bootstrap module: %s" % modname)
154 -+ else:
155 -+ if f is not None:
156 -+ f.close()
157 -+ # special-case custom readline.so on OS X, but not for pypy:
158 -+ if modname == 'readline' and sys.platform == 'darwin' and not (
159 -+ is_pypy or filename.endswith(join('lib-dynload', 'readline.so'))):
160 -+ dst_filename = join(dst_prefix, 'lib', 'python%s' % sys.version[:3], 'readline.so')
161 -+ elif modname == 'readline' and sys.platform == 'win32':
162 -+ # special-case for Windows, where readline is not a
163 -+ # standard module, though it may have been installed in
164 -+ # site-packages by a third-party package
165 -+ pass
166 - else:
167 -- if f is not None:
168 -- f.close()
169 -- # special-case custom readline.so on OS X, but not for pypy:
170 -- if modname == 'readline' and sys.platform == 'darwin' and not (
171 -- is_pypy or filename.endswith(join('lib-dynload', 'readline.so'))):
172 -- dst_filename = join(dst_prefix, 'lib', 'python%s' % sys.version[:3], 'readline.so')
173 -- elif modname == 'readline' and sys.platform == 'win32':
174 -- # special-case for Windows, where readline is not a
175 -- # standard module, though it may have been installed in
176 -- # site-packages by a third-party package
177 -- pass
178 -- else:
179 -- dst_filename = change_prefix(filename, dst_prefix)
180 -- copyfile(filename, dst_filename, symlink)
181 -- if filename.endswith('.pyc'):
182 -- pyfile = filename[:-1]
183 -- if os.path.exists(pyfile):
184 -- copyfile(pyfile, dst_filename[:-1], symlink)
185 -- finally:
186 -- sys.path = _prev_sys_path
187 -+ dst_filename = change_prefix(filename, dst_prefix)
188 -+ copyfile(filename, dst_filename, symlink)
189 -+ if filename.endswith('.pyc'):
190 -+ pyfile = filename[:-1]
191 -+ if os.path.exists(pyfile):
192 -+ copyfile(pyfile, dst_filename[:-1], symlink)
193 -
194 -
195 - def subst_path(prefix_path, prefix, home_dir):
196
197 diff --git a/dev-python/virtualenv/virtualenv-13.1.2-r1.ebuild b/dev-python/virtualenv/virtualenv-13.1.2-r1.ebuild
198 deleted file mode 100644
199 index 27d0e31afb5..00000000000
200 --- a/dev-python/virtualenv/virtualenv-13.1.2-r1.ebuild
201 +++ /dev/null
202 @@ -1,51 +0,0 @@
203 -# Copyright 1999-2017 Gentoo Foundation
204 -# Distributed under the terms of the GNU General Public License v2
205 -
206 -EAPI=5
207 -
208 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
209 -
210 -inherit distutils-r1
211 -
212 -DESCRIPTION="Virtual Python Environment builder"
213 -HOMEPAGE="
214 - http://www.virtualenv.org/
215 - https://pypi.python.org/pypi/virtualenv
216 - https://github.com/pypa/virtualenv/
217 -"
218 -SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
219 -
220 -LICENSE="MIT"
221 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
222 -SLOT="0"
223 -IUSE="doc test"
224 -
225 -RDEPEND=""
226 -DEPEND="${RDEPEND}
227 - dev-python/setuptools[${PYTHON_USEDEP}]
228 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
229 - test? (
230 - dev-python/mock[${PYTHON_USEDEP}]
231 - dev-python/pytest[${PYTHON_USEDEP}]
232 - )"
233 -
234 -DOCS=( docs/index.rst docs/changes.rst )
235 -
236 -PATCHES=(
237 - "${FILESDIR}"/${PN}-1.8.2-no-versioned-script.patch
238 - "${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch
239 - "${FILESDIR}"/${P}-PYTHONPATH-backport.patch
240 -)
241 -
242 -python_compile_all() {
243 - use doc && emake -C docs html
244 -}
245 -
246 -python_test() {
247 - py.test -v -v || die "Tests fail with ${EPYTHON}"
248 -}
249 -
250 -python_install_all() {
251 - use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. )
252 - distutils-r1_python_install_all
253 -}
254
255 diff --git a/dev-python/virtualenv/virtualenv-13.1.2.ebuild b/dev-python/virtualenv/virtualenv-13.1.2.ebuild
256 deleted file mode 100644
257 index c97edc4ef1f..00000000000
258 --- a/dev-python/virtualenv/virtualenv-13.1.2.ebuild
259 +++ /dev/null
260 @@ -1,50 +0,0 @@
261 -# Copyright 1999-2017 Gentoo Foundation
262 -# Distributed under the terms of the GNU General Public License v2
263 -
264 -EAPI=5
265 -
266 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
267 -
268 -inherit distutils-r1
269 -
270 -DESCRIPTION="Virtual Python Environment builder"
271 -HOMEPAGE="
272 - http://www.virtualenv.org/
273 - https://pypi.python.org/pypi/virtualenv
274 - https://github.com/pypa/virtualenv/
275 -"
276 -SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
277 -
278 -LICENSE="MIT"
279 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
280 -SLOT="0"
281 -IUSE="doc test"
282 -
283 -RDEPEND=""
284 -DEPEND="${RDEPEND}
285 - dev-python/setuptools[${PYTHON_USEDEP}]
286 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
287 - test? (
288 - dev-python/mock[${PYTHON_USEDEP}]
289 - dev-python/pytest[${PYTHON_USEDEP}]
290 - )"
291 -
292 -DOCS=( docs/index.rst docs/changes.rst )
293 -
294 -PATCHES=(
295 - "${FILESDIR}"/${PN}-1.8.2-no-versioned-script.patch
296 - "${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch
297 -)
298 -
299 -python_compile_all() {
300 - use doc && emake -C docs html
301 -}
302 -
303 -python_test() {
304 - py.test -v -v || die "Tests fail with ${EPYTHON}"
305 -}
306 -
307 -python_install_all() {
308 - use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. )
309 - distutils-r1_python_install_all
310 -}
311
312 diff --git a/dev-python/virtualenv/virtualenv-14.0.6.ebuild b/dev-python/virtualenv/virtualenv-14.0.6.ebuild
313 deleted file mode 100644
314 index 9aa3400b392..00000000000
315 --- a/dev-python/virtualenv/virtualenv-14.0.6.ebuild
316 +++ /dev/null
317 @@ -1,50 +0,0 @@
318 -# Copyright 1999-2017 Gentoo Foundation
319 -# Distributed under the terms of the GNU General Public License v2
320 -
321 -EAPI=6
322 -
323 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
324 -
325 -inherit distutils-r1
326 -
327 -DESCRIPTION="Virtual Python Environment builder"
328 -HOMEPAGE="
329 - http://www.virtualenv.org/
330 - https://pypi.python.org/pypi/virtualenv
331 - https://github.com/pypa/virtualenv/
332 -"
333 -SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
334 -
335 -LICENSE="MIT"
336 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
337 -SLOT="0"
338 -IUSE="doc test"
339 -
340 -RDEPEND=""
341 -DEPEND="${RDEPEND}
342 - dev-python/setuptools[${PYTHON_USEDEP}]
343 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
344 - test? (
345 - dev-python/mock[${PYTHON_USEDEP}]
346 - dev-python/pytest[${PYTHON_USEDEP}]
347 - )"
348 -
349 -DOCS=( docs/index.rst docs/changes.rst )
350 -
351 -PATCHES=(
352 - "${FILESDIR}"/${PN}-1.8.2-no-versioned-script.patch
353 - "${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch
354 -)
355 -
356 -python_compile_all() {
357 - use doc && emake -C docs html
358 -}
359 -
360 -python_test() {
361 - py.test -v -v || die "Tests fail with ${EPYTHON}"
362 -}
363 -
364 -python_install_all() {
365 - use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. )
366 - distutils-r1_python_install_all
367 -}
368
369 diff --git a/dev-python/virtualenv/virtualenv-15.0.3.ebuild b/dev-python/virtualenv/virtualenv-15.0.3.ebuild
370 deleted file mode 100644
371 index 833483ff7b2..00000000000
372 --- a/dev-python/virtualenv/virtualenv-15.0.3.ebuild
373 +++ /dev/null
374 @@ -1,49 +0,0 @@
375 -# Copyright 1999-2017 Gentoo Foundation
376 -# Distributed under the terms of the GNU General Public License v2
377 -
378 -EAPI=6
379 -
380 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
381 -
382 -inherit distutils-r1
383 -
384 -DESCRIPTION="Virtual Python Environment builder"
385 -HOMEPAGE="
386 - http://www.virtualenv.org/
387 - https://pypi.python.org/pypi/virtualenv
388 - https://github.com/pypa/virtualenv/
389 -"
390 -SRC_URI="https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
391 -
392 -LICENSE="MIT"
393 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
394 -SLOT="0"
395 -IUSE="doc test"
396 -
397 -RDEPEND=""
398 -DEPEND="${RDEPEND}
399 - >=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}]
400 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
401 - test? (
402 - dev-python/mock[${PYTHON_USEDEP}]
403 - dev-python/pytest[${PYTHON_USEDEP}]
404 - )"
405 -
406 -DOCS=( docs/index.rst docs/changes.rst )
407 -
408 -PATCHES=(
409 - "${FILESDIR}"/${PN}-12.1.1-skip-broken-test.patch
410 -)
411 -
412 -python_compile_all() {
413 - use doc && emake -C docs html
414 -}
415 -
416 -python_test() {
417 - py.test -v -v || die "Tests fail with ${EPYTHON}"
418 -}
419 -
420 -python_install_all() {
421 - use doc && local HTML_DOCS=( docs/_build/html/. )
422 - distutils-r1_python_install_all
423 -}