Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
1699adee
Unverified
Commit
1699adee
authored
Jun 07, 2018
by
Matthew Brett
Committed by
GitHub
Jun 07, 2018
Browse files
Merge pull request #175 from matthew-brett/add-distutils-platform
NF: add distutils platform check To get pip's platform.
parents
81453647
7675c8cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
common_utils.sh
common_utils.sh
+6
-0
tests/test_common_utils.sh
tests/test_common_utils.sh
+4
-0
No files found.
common_utils.sh
View file @
1699adee
...
@@ -299,6 +299,12 @@ function get_platform {
...
@@ -299,6 +299,12 @@ function get_platform {
python -c 'import platform; print(platform.uname()[4])'
python -c 'import platform; print(platform.uname()[4])'
}
}
function get_distutils_platform {
# Report platform as given by distutils get_platform.
# This is the platform tag that pip will use.
python -c "
import distutils.util
;
print
(
distutils.util.get_platform
())
"
}
function install_wheel {
function install_wheel {
# Install test dependencies and built wheel
# Install test dependencies and built wheel
#
#
...
...
tests/test_common_utils.sh
View file @
1699adee
...
@@ -88,3 +88,7 @@ set_opts $ORIG_OPTS
...
@@ -88,3 +88,7 @@ set_opts $ORIG_OPTS
# On Linux docker containers in travis, can only be x86_64 or i686
# On Linux docker containers in travis, can only be x86_64 or i686
[
"
$(
get_platform
)
"
==
x86_64
]
||
[
"
$(
get_platform
)
"
==
i686
]
||
exit
1
[
"
$(
get_platform
)
"
==
x86_64
]
||
[
"
$(
get_platform
)
"
==
i686
]
||
exit
1
# Crudest possible check for get_distutils_platform
expected
=
$(
python
-c
"import distutils.util as du; print(du.get_platform())"
)
[
"
$(
get_distutils_platform
)
"
==
"
$expected
"
]
||
ingest
"bad distutils platform"
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