Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-SC
manylinux_freeze
Commits
93cc162f
Commit
93cc162f
authored
Mar 05, 2021
by
Tim Schoof
Browse files
Upgrade to Python 3.7
parent
39ee7570
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
93cc162f
NAME
=
schooft/manylinux_freeze
NAME
=
schooft/manylinux_freeze
:3.7
docker build
-t
${
NAME
}
.
...
...
manylinux_compile_python.sh
View file @
93cc162f
...
...
@@ -14,7 +14,6 @@ mkdir -p build_scripts
pushd
build_scripts
curl
-fsSLO
https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/cpython-pubkeys.txt
curl
-fsSLO
https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/build_env.sh
curl
-fsSLO
https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/py27-requirements.txt
curl
-fsSLO
https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/python-tag-abi-tag.py
curl
-fsSLO
https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/requirements.txt
curl
-fsSLO
https://github.com/pypa/manylinux/raw/manylinux1/docker/build_scripts/ambv-pubkey.txt
...
...
@@ -24,7 +23,7 @@ source build_scripts/build_env.sh
# overwrite, as we only need a few python versions
# of the form <maj>.<min>.<rev> or <maj>.<min>.<rev>rc<n>
CPYTHON_VERSIONS
=
"
2
.7.1
8
"
CPYTHON_VERSIONS
=
"
3
.7.1
0
"
# Dependencies for compiling Python that we want to remove from
...
...
@@ -82,7 +81,7 @@ function do_cpython_build {
mkdir
-p
${
prefix
}
/lib
# BEGIN CHANGE for shared build
# ./configure --prefix=${prefix} --disable-shared $unicode_flags > /dev/null
./configure
--prefix
=
${
prefix
}
--enable-shared
--enable-optimizations
$unicode_flags
>
/dev/null
./configure
--prefix
=
${
prefix
}
--enable-shared
$unicode_flags
>
/dev/null
# END CHANGE
make
-j2
>
/dev/null
...
...
@@ -126,7 +125,7 @@ function build_cpython {
local
py_dist_dir
=
$(
pyver_dist_dir
$py_ver
)
curl
-fsSLO
$PYTHON_DOWNLOAD_URL
/
$py_dist_dir
/Python-
$py_ver
.tgz
curl
-fsSLO
$PYTHON_DOWNLOAD_URL
/
$py_dist_dir
/Python-
$py_ver
.tgz.asc
gpg
--verify
Python-
$py_ver
.tgz.asc
gpg
--verify
--no-auto-key-locate
Python-
$py_ver
.tgz.asc
if
[
$(
lex_pyver
$py_ver
)
-lt
$(
lex_pyver 3.3
)
]
;
then
# BEGIN CHANGE for shared build
# we only need the wide unicode version
...
...
vagrant_build.sh
View file @
93cc162f
NAME
=
schooft/manylinux_freeze
NAME
=
schooft/manylinux_freeze
:3.7
vagrant rsync
vagrant ssh
-c
"
cd /vagrant
\
&& docker build -t
${
NAME
}
.
"
vagrant ssh
-c
"docker save
${
NAME
}
"
--
-T
| docker load
"
\
&&
vagrant ssh
-c
"docker save
${
NAME
}
"
--
-T
| docker load
if
[[
$1
==
"push"
]]
;
then
docker push
${
NAME
}
...
...
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