Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.rebootstrap
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
Xavier Thompson
slapos.rebootstrap
Commits
bfa5cfcb
Commit
bfa5cfcb
authored
Oct 27, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP fix rebootstrap for buildout rebase
parent
2ad0a1f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
setup.py
setup.py
+1
-1
slapos/rebootstrap/bootstrap.py
slapos/rebootstrap/bootstrap.py
+9
-6
No files found.
setup.py
View file @
bfa5cfcb
from
setuptools
import
setup
,
find_packages
version
=
'4.5
+xavier00
1'
version
=
'4.5
.dev
1'
name
=
"slapos.rebootstrap"
long_description
=
open
(
"README.rst"
).
read
()
+
'
\
n
\
n
'
...
...
slapos/rebootstrap/bootstrap.py
View file @
bfa5cfcb
...
...
@@ -10,7 +10,7 @@ class FakeSysExecutable(object):
def
get_distributions
():
from
pkg_resources
import
get_distribution
distributions
=
[
'setuptools'
,
'zc.buildout'
]
distributions
=
[
'setuptools'
,
'zc.buildout'
,
'wheel'
,
'pip'
]
try
:
import
slapos.libnetworkcache
except
ImportError
:
...
...
@@ -36,15 +36,18 @@ def setup_script(path, python=sys.executable):
easy_install
.
sys
=
sys
def
main
():
import
shutil
,
subprocess
,
tempfile
,
zipfile
import
shutil
,
subprocess
,
tempfile
,
zipfile
,
tarfile
eggs_dir
=
sys
.
argv
[
2
]
cache
=
sys
.
argv
[
3
]
# Install setuptools.
src
=
os
.
path
.
join
(
cache
,
sys
.
argv
[
4
].
replace
(
'=='
,
'-'
)
+
'.zip'
)
base
=
os
.
path
.
join
(
cache
,
sys
.
argv
[
4
].
replace
(
'=='
,
'-'
))
tmp
=
tempfile
.
mkdtemp
()
try
:
with
zipfile
.
ZipFile
(
src
)
as
zip_file
:
zip_file
.
extractall
(
tmp
)
try
:
with
zipfile
.
ZipFile
(
base
+
'.zip'
)
as
zip_file
:
zip_file
.
extractall
(
tmp
)
except
(
IOError
,
OSError
):
with
tarfile
.
open
(
base
+
'.tar.gz'
)
as
tar_file
:
tar_file
.
extractall
(
tmp
)
src
,
=
os
.
listdir
(
tmp
)
subprocess
.
check_call
((
sys
.
executable
,
'setup.py'
,
'-q'
,
'bdist_egg'
,
'--dist-dir'
,
tmp
),
cwd
=
os
.
path
.
join
(
tmp
,
src
))
...
...
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