Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.ip.flandmark
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
Show more breadcrumbs
bob
bob.ip.flandmark
Commits
20d438c6
Commit
20d438c6
authored
11 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Updated bootstrap for compatibility with setuptools
parent
da1700f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap.py
+14
-1
14 additions, 1 deletion
bootstrap.py
with
14 additions
and
1 deletion
bootstrap.py
+
14
−
1
View file @
20d438c6
...
@@ -35,7 +35,7 @@ Bootstraps a buildout-based project.
...
@@ -35,7 +35,7 @@ Bootstraps a buildout-based project.
Simply run this script in a directory containing a buildout.cfg, using the
Simply run this script in a directory containing a buildout.cfg, using the
Python that you want bin/buildout to use.
Python that you want bin/buildout to use.
Note that by using --find-links to point to local resources, you can keep
Note that by using --find-links to point to local resources, you can keep
this script from going over the network.
this script from going over the network.
'''
'''
...
@@ -90,6 +90,19 @@ except ImportError:
...
@@ -90,6 +90,19 @@ except ImportError:
if
path
not
in
pkg_resources
.
working_set
.
entries
:
if
path
not
in
pkg_resources
.
working_set
.
entries
:
pkg_resources
.
working_set
.
add_entry
(
path
)
pkg_resources
.
working_set
.
add_entry
(
path
)
######################################################################
# Try to best guess the version of buildout given setuptools
if
options
.
version
is
None
:
try
:
from
distutils.version
import
LooseVersion
package
=
pkg_resources
.
require
(
'
setuptools
'
)[
0
]
v
=
LooseVersion
(
package
.
version
)
if
v
<
LooseVersion
(
'
0.7
'
):
options
.
version
=
'
2.1.1
'
except
:
pass
######################################################################
######################################################################
# Install buildout
# Install buildout
...
...
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