Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
642e3023
Commit
642e3023
authored
May 05, 2021
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: pip==21.1 support broken
Solution: change imports appropriately
parent
3da22a7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+1
-1
src/zc/buildout/pip_support.py
src/zc/buildout/pip_support.py
+8
-0
No files found.
src/zc/buildout/easy_install.py
View file @
642e3023
...
@@ -40,6 +40,7 @@ import zc.buildout
...
@@ -40,6 +40,7 @@ import zc.buildout
import
zc.buildout.rmtree
import
zc.buildout.rmtree
from
zc.buildout
import
WINDOWS
from
zc.buildout
import
WINDOWS
from
zc.buildout
import
PY3
from
zc.buildout
import
PY3
from
zc.buildout.pip_support
import
pip_install_cmd
as
_pip_install_cmd
import
warnings
import
warnings
import
csv
import
csv
...
@@ -182,7 +183,6 @@ def _execute_permission():
...
@@ -182,7 +183,6 @@ def _execute_permission():
return
0o777
-
current_umask
return
0o777
-
current_umask
_pip_install_cmd
=
'from pip.__main__ import _main; _main()'
def
get_namespace_package_paths
(
dist
):
def
get_namespace_package_paths
(
dist
):
"""
"""
...
...
src/zc/buildout/pip_support.py
0 → 100644
View file @
642e3023
try
:
# support pip>=19.0
from
pip._internal.cli.main
import
main
pip_install_cmd
=
'from pip._internal.cli.main import main; main()'
except
ImportError
:
# support pip>=10.0
from
pip._internal
import
main
pip_install_cmd
=
'from pip._internal import main; main()'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment