Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
python-compile
Commits
c4daefc5
Commit
c4daefc5
authored
Jun 11, 2020
by
EKbfh
🐼
Browse files
Move paths for compiling
Make proper tar archive
parent
296e172d
Pipeline
#23978
passed with stages
in 27 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c4daefc5
...
...
@@ -22,13 +22,13 @@ variables:
libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev
libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev uuid-dev
-
curl -o /tmp/python.tar.gz https://www.python.org/ftp/python/$PYTHON_VERSION_3_8/Python-$PYTHON_VERSION_3_8.tgz
-
tar -zxf /tmp/python.tar.gz -C /opt
/python$PYTHON_VERSION_3_8
-
cd /opt/
python$PYTHON_VERSION_3_8/
Python-$PYTHON_VERSION_3_8
-
./configure --prefix=/opt/python$PYTHON_VERSION_3_8
/build
--enable-optimizations $COMPILE_FLAGS_DEB
-
tar -zxf /tmp/python.tar.gz -C /opt
-
cd /opt/Python-$PYTHON_VERSION_3_8
-
./configure --prefix=/opt/python$PYTHON_VERSION_3_8 --enable-optimizations $COMPILE_FLAGS_DEB
-
make -s
-
make install
-
/opt/python$PYTHON_VERSION_3_8/
build/
bin/python3 -V ||
true
-
tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz" /opt/python$PYTHON_VERSION_3_8/
build
-
/opt/python$PYTHON_VERSION_3_8/bin/python3 -V ||
true
-
tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz"
-C
/opt/python$PYTHON_VERSION_3_8/
.
artifacts
:
paths
:
-
python*.tar.gz
...
...
@@ -58,7 +58,7 @@ compile_RedHat:
-
make -s
-
make install
-
/opt/python$PYTHON_VERSION_3_8/bin/python3 -V ||
true
-
tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz" /opt/python$PYTHON_VERSION_3_8/
-
tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz"
-C
/opt/python$PYTHON_VERSION_3_8/
.
upload_RedHat
:
stage
:
upload
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment