1 |
commit: 167eda54ae504583dab534522a691aa229c68532 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 14 21:27:35 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 14 21:31:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=167eda54 |
7 |
|
8 |
SimpleRepomanTestCase: remove broken PYTHONPATH setting (bug 637460) |
9 |
|
10 |
Since PORTAGE_PYM_PATH typically refers to the global site-packages |
11 |
directory, using it to set PYTHONPATH is unhelpful. The code |
12 |
involving .repoman_not_installed already overrides sys.path when |
13 |
necessary. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/637460 |
16 |
|
17 |
repoman/pym/repoman/tests/simple/test_simple.py | 15 --------------- |
18 |
1 file changed, 15 deletions(-) |
19 |
|
20 |
diff --git a/repoman/pym/repoman/tests/simple/test_simple.py b/repoman/pym/repoman/tests/simple/test_simple.py |
21 |
index 114656eac..a24e0d5a3 100644 |
22 |
--- a/repoman/pym/repoman/tests/simple/test_simple.py |
23 |
+++ b/repoman/pym/repoman/tests/simple/test_simple.py |
24 |
@@ -8,7 +8,6 @@ import time |
25 |
from repoman._portage import portage |
26 |
from portage import os |
27 |
from portage import _unicode_decode |
28 |
-from portage.const import PORTAGE_BASE_PATH, PORTAGE_PYM_PATH |
29 |
from portage.process import find_binary |
30 |
from portage.tests.resolver.ResolverPlayground import ResolverPlayground |
31 |
from portage.util import ensure_dirs |
32 |
@@ -204,19 +203,6 @@ class SimpleRepomanTestCase(TestCase): |
33 |
("dev-libs/A", repoman_cmd + ("commit", "-m", "bump to version 4")), |
34 |
) |
35 |
|
36 |
- pythonpath = os.environ.get("PYTHONPATH") |
37 |
- if pythonpath is not None and not pythonpath.strip(): |
38 |
- pythonpath = None |
39 |
- if pythonpath is not None and \ |
40 |
- pythonpath.split(":")[0] == PORTAGE_PYM_PATH: |
41 |
- pass |
42 |
- else: |
43 |
- if pythonpath is None: |
44 |
- pythonpath = "" |
45 |
- else: |
46 |
- pythonpath = ":" + pythonpath |
47 |
- pythonpath = PORTAGE_PYM_PATH + pythonpath |
48 |
- |
49 |
env = { |
50 |
"PORTAGE_OVERRIDE_EPREFIX" : eprefix, |
51 |
"DISTDIR" : distdir, |
52 |
@@ -228,7 +214,6 @@ class SimpleRepomanTestCase(TestCase): |
53 |
"PORTAGE_USERNAME" : os.environ["PORTAGE_USERNAME"], |
54 |
"PORTAGE_REPOSITORIES" : settings.repositories.config_string(), |
55 |
"PYTHONDONTWRITEBYTECODE" : os.environ.get("PYTHONDONTWRITEBYTECODE", ""), |
56 |
- "PYTHONPATH" : pythonpath, |
57 |
} |
58 |
|
59 |
if os.environ.get("SANDBOX_ON") == "1": |