Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill pkg_resources for CLI tools [DO NOT MERGE] #38167

Merged
merged 4 commits into from
Dec 22, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions salt/cli/call.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import sys
sys.modules['pkg_resources'] = None
import os

from salt.utils import parsers
Expand Down
2 changes: 2 additions & 0 deletions salt/cli/cp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# Import python libs
from __future__ import print_function
from __future__ import absolute_import
import sys
sys.modules['pkg_resources'] = None
import os
import sys

Expand Down
3 changes: 3 additions & 0 deletions salt/cli/key.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import sys
sys.modules['pkg_resources'] = None


from salt.utils import parsers
from salt.utils.verify import check_user, verify_log
Expand Down
2 changes: 2 additions & 0 deletions salt/cli/run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import sys
sys.modules['pkg_resources'] = None

from salt.utils import parsers
from salt.utils import activate_profile
Expand Down
3 changes: 2 additions & 1 deletion salt/cli/salt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

# Import python libs
from __future__ import absolute_import, print_function
import os
import sys
sys.modules['pkg_resources'] = None
import os

# Import Salt libs
from salt.ext.six import string_types
Expand Down
2 changes: 2 additions & 0 deletions salt/cli/spm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

# Import Python libs
from __future__ import absolute_import
import sys
sys.modules['pkg_resources'] = None

# Import Salt libs
import salt.spm
Expand Down