Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.buildout
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.buildout
Commits
d086e595
There was a problem fetching the pipeline summary.
Commit
d086e595
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Try a fix for issue 24
parent
b6678cdc
No related branches found
No related tags found
1 merge request
!27
Try a fix for issue 24
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/buildout/script.py
+7
-2
7 additions, 2 deletions
bob/buildout/script.py
with
7 additions
and
2 deletions
bob/buildout/script.py
+
7
−
2
View file @
d086e595
...
@@ -30,12 +30,17 @@ import sys
...
@@ -30,12 +30,17 @@ import sys
sys.path[0:0] = [
sys.path[0:0] = [
%%(path)s,
%%(path)s,
]
]
if sys.version_info[:2] >= (3, 6): #see: http://bugs.python.org/issue30167
#see: http://bugs.python.org/issue30167
if sys.version_info[:2] >= (3, 6) and
\
sys.modules[
'
__main__
'
].__loader__ is not None:
_hack = str(sys.modules[
'
__main__
'
].__loader__.__module__)
_hack = str(sys.modules[
'
__main__
'
].__loader__.__module__)
sys.modules[
'
__main__
'
].__loader__.__module__ +=
'
_
'
sys.modules[
'
__main__
'
].__loader__.__module__ +=
'
_
'
import site #initializes site properly
import site #initializes site properly
site.main() #this is required for python>=3.4
site.main() #this is required for python>=3.4
if sys.version_info[:2] >= (3, 6): #restore original value just in case...
if sys.version_info[:2] >= (3, 6) and
\
sys.modules[
'
__main__
'
].__loader__ is not None:
#restores original value
sys.modules[
'
__main__
'
].__loader__.__module__ = _hack
sys.modules[
'
__main__
'
].__loader__.__module__ = _hack
import pkg_resources #initializes virtualenvs properly
import pkg_resources #initializes virtualenvs properly
%%(initialization)s
%%(initialization)s
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment