Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
75d108c9
Commit
75d108c9
authored
May 28, 2015
by
Arfrever Frehtes Taifersar Arahesis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #378: Do not use internal importlib._bootstrap module.
parent
c87fd7aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
CHANGES.txt
CHANGES.txt
+1
-0
pkg_resources/__init__.py
pkg_resources/__init__.py
+8
-8
No files found.
CHANGES.txt
View file @
75d108c9
...
@@ -6,6 +6,7 @@ CHANGES
...
@@ -6,6 +6,7 @@ CHANGES
17.0
17.0
----
----
* Issue #378: Do not use internal importlib._bootstrap module.
* Issue #390: Disallow console scripts with path separators in
* Issue #390: Disallow console scripts with path separators in
the name. Removes unintended functionality and brings behavior
the name. Removes unintended functionality and brings behavior
into parity wih pip.
into parity wih pip.
...
...
pkg_resources/__init__.py
View file @
75d108c9
...
@@ -69,9 +69,9 @@ from os.path import isdir, split
...
@@ -69,9 +69,9 @@ from os.path import isdir, split
# Avoid try/except due to potential problems with delayed import mechanisms.
# Avoid try/except due to potential problems with delayed import mechanisms.
if
sys
.
version_info
>=
(
3
,
3
)
and
sys
.
implementation
.
name
==
"cpython"
:
if
sys
.
version_info
>=
(
3
,
3
)
and
sys
.
implementation
.
name
==
"cpython"
:
import
importlib.
_bootstrap
as
importlib_bootstrap
import
importlib.
machinery
as
importlib_machinery
else
:
else
:
importlib_
bootstrap
=
None
importlib_
machinery
=
None
try
:
try
:
import
parser
import
parser
...
@@ -1720,8 +1720,8 @@ class DefaultProvider(EggProvider):
...
@@ -1720,8 +1720,8 @@ class DefaultProvider(EggProvider):
register_loader_type
(
type
(
None
),
DefaultProvider
)
register_loader_type
(
type
(
None
),
DefaultProvider
)
if
importlib_
bootstrap
is
not
None
:
if
importlib_
machinery
is
not
None
:
register_loader_type
(
importlib_
bootstrap
.
SourceFileLoader
,
DefaultProvider
)
register_loader_type
(
importlib_
machinery
.
SourceFileLoader
,
DefaultProvider
)
class
EmptyProvider
(
NullProvider
):
class
EmptyProvider
(
NullProvider
):
...
@@ -2128,8 +2128,8 @@ def find_on_path(importer, path_item, only=False):
...
@@ -2128,8 +2128,8 @@ def find_on_path(importer, path_item, only=False):
break
break
register_finder
(
pkgutil
.
ImpImporter
,
find_on_path
)
register_finder
(
pkgutil
.
ImpImporter
,
find_on_path
)
if
importlib_
bootstrap
is
not
None
:
if
importlib_
machinery
is
not
None
:
register_finder
(
importlib_
bootstrap
.
FileFinder
,
find_on_path
)
register_finder
(
importlib_
machinery
.
FileFinder
,
find_on_path
)
_declare_state
(
'dict'
,
_namespace_handlers
=
{})
_declare_state
(
'dict'
,
_namespace_handlers
=
{})
_declare_state
(
'dict'
,
_namespace_packages
=
{})
_declare_state
(
'dict'
,
_namespace_packages
=
{})
...
@@ -2237,8 +2237,8 @@ def file_ns_handler(importer, path_item, packageName, module):
...
@@ -2237,8 +2237,8 @@ def file_ns_handler(importer, path_item, packageName, module):
register_namespace_handler
(
pkgutil
.
ImpImporter
,
file_ns_handler
)
register_namespace_handler
(
pkgutil
.
ImpImporter
,
file_ns_handler
)
register_namespace_handler
(
zipimport
.
zipimporter
,
file_ns_handler
)
register_namespace_handler
(
zipimport
.
zipimporter
,
file_ns_handler
)
if
importlib_
bootstrap
is
not
None
:
if
importlib_
machinery
is
not
None
:
register_namespace_handler
(
importlib_
bootstrap
.
FileFinder
,
file_ns_handler
)
register_namespace_handler
(
importlib_
machinery
.
FileFinder
,
file_ns_handler
)
def
null_ns_handler
(
importer
,
path_item
,
packageName
,
module
):
def
null_ns_handler
(
importer
,
path_item
,
packageName
,
module
):
...
...
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