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
b01752c2
Commit
b01752c2
authored
Aug 17, 2020
by
Tim Schoof
Browse files
Remove tests and pyc/pyo files
parent
6f48ec16
Changes
1
Hide whitespace changes
Inline
Side-by-side
manylinux_compile_python.sh
View file @
b01752c2
...
...
@@ -251,6 +251,13 @@ build_cpythons $CPYTHON_VERSIONS
# Now we can delete our built OpenSSL headers/static libs since we've linked everything we need
rm
-rf
/usr/local/ssl
# We do not need the Python test suites, or indeed the precompiled .pyc and
# .pyo files. Partially cribbed from:
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
find /opt/_internal
-depth
\
\(
-type
d
-a
-name
test
-o
-name
tests
\)
\
-o
\(
-type
f
-a
-name
'*.pyc'
-o
-name
'*.pyo'
\)
| xargs
rm
-rf
yum
-y
erase gnupg
${
PYTHON_COMPILE_DEPS
}
>
/dev/null 2>&1
yum
-y
clean all
>
/dev/null 2>&1
yum list installed
\ No newline at end of file
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