Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Carlos Ramos Carreño
slapos.package
Commits
864e80e9
Commit
864e80e9
authored
May 02, 2024
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obs/slapos: try to bootstrap with newer buildout
parent
4603f7dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
obs/slapos/prepare_download_cache.sh
obs/slapos/prepare_download_cache.sh
+4
-17
No files found.
obs/slapos/prepare_download_cache.sh
View file @
864e80e9
...
...
@@ -26,33 +26,20 @@ echo " Buildroot Directory: $BUILD_ROOT_DIRECTORY "
mkdir
-p
$BUILD_DIRECTORY
/
{
eggs,extends-cache,download-cache/dist
}
cd
$BUILD_DIRECTORY
# 1) boostrap with
old vers
ion
# 1) boostrap with
isolat
ion
echo
"bootsrapping buildout"
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s|
\%
PATCHES_DIRECTORY
\%
|
$PATCHES_DIRECTORY
|g;s|
\%
TARGET_DIRECTORY
\%
|
$TARGET_DIRECTORY
|g;s|
\%
BUILD_ROOT_DIRECTORY
\%
|
$BUILD_ROOT_DIRECTORY
|g;s|
\%
BUILD_DIRECTORY
\%
|
$BUILD_DIRECTORY
|g"
$BUILD_ROOT_DIRECTORY
/../slapos.buildout.cfg.in
>
buildout.cfg
wget https://lab.nexedi.com/nexedi/slapos.buildout/raw/master/bootstrap/bootstrap.py
python3
-S
bootstrap.py
\
--setuptools-version
41.6.0
\
--setuptools-to-dir
eggs
\
--buildout-version
2.13.8
# 2) get newest version of zc.buildout and setuptools
# note that we can't directly do setuptools + zc.buildout +
# slapos.libnetworkcache because buildout would be relaunched in the middle
# without the "-S" option to python
echo
"downloading good version of setuptools and zc.buildout"
sed
-i
'1s/$/ -S/'
bin/buildout
sed
-i
"/def _satisfied(/s/
\(\b
source=
\)
None/
\1
1/"
eggs/zc.buildout-
*
/zc/buildout/easy_install.py
# no wheel
bin/buildout buildout:newest
=
true
-v
buildout bootstrap buildout:isolate-from-buildout-and-setuptools-path
=
true
ls
download-cache/dist/
*
.whl
&&
{
echo
"There shouldn't be any wheel in download-cache"
;
exit
1
;
}
#
3
) compile very simple buildout with networkcache
#
2
) compile very simple buildout with networkcache
echo
"Preparing networkcached zc.buildout"
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s|
\%
PATCHES_DIRECTORY
\%
|
$PATCHES_DIRECTORY
|g;s|
\%
TARGET_DIRECTORY
\%
|
$TARGET_DIRECTORY
|g;s|
\%
BUILD_ROOT_DIRECTORY
\%
|
$BUILD_ROOT_DIRECTORY
|g;s|
\%
BUILD_DIRECTORY
\%
|
$BUILD_DIRECTORY
|g"
$BUILD_ROOT_DIRECTORY
/../networkcached.cfg.in
>
buildout.cfg
sed
-i
'1s/$/ -S/'
bin/buildout
bin/buildout buildout:newest
=
true
-v
#
4
) build locally everything with gcc to get download-cache and extends-cache ready
#
3
) build locally everything with gcc to get download-cache and extends-cache ready
echo
"Launch the big buildout to compile everything"
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s|
\%
PATCHES_DIRECTORY
\%
|
$PATCHES_DIRECTORY
|g;s|
\%
TARGET_DIRECTORY
\%
|
$TARGET_DIRECTORY
|g;s|
\%
BUILD_ROOT_DIRECTORY
\%
|
$BUILD_ROOT_DIRECTORY
|g;s|
\%
BUILD_DIRECTORY
\%
|
$BUILD_DIRECTORY
|g"
$BUILD_ROOT_DIRECTORY
/../buildout_with_gcc.cfg.in
>
buildout.cfg
...
...
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