Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210130121
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210130121
Commits
389acf34
Unverified
Commit
389acf34
authored
3 years ago
by
Shenghang Tsai
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add arg skip_audit in build wheel (#5423)
* add arg skip_audit * refine
parent
2e75393e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/test/try_install.sh
+1
-1
1 addition, 1 deletion
ci/test/try_install.sh
docker/package/manylinux/build_wheel.py
+12
-0
12 additions, 0 deletions
docker/package/manylinux/build_wheel.py
with
13 additions
and
1 deletion
ci/test/try_install.sh
+
1
−
1
View file @
389acf34
...
...
@@ -11,7 +11,7 @@ if [ -n "$index" ]; then
elif
[
-d
"
$wheel_path
"
]
;
then
ls
-la
$wheel_path
export
PATH
=
/root/.local/bin:
$PATH
python3
-m
pip
install
piprepo
--user
python3
-m
pip
install
piprepo
==
0.1.3
--user
piprepo build
$wheel_path
python3
-m
pip
install
-U
--user
--extra-index-url
file://
${
wheel_path
}
/simple
${
pkg_name
}
elif
[
-e
"
$wheel_path
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
docker/package/manylinux/build_wheel.py
+
12
−
0
View file @
389acf34
...
...
@@ -218,6 +218,7 @@ def build_oneflow(
dry
,
use_system_proxy
,
enter_bash
,
skip_audit
,
):
oneflow_build_dir
=
os
.
path
.
join
(
cache_dir
,
"
build-oneflow
"
)
python_bin
=
get_python_bin
(
python_version
)
...
...
@@ -268,6 +269,13 @@ rm -rf {oneflow_build_dir}/python_scripts/*.egg-info
cd
{
oneflow_src_dir
}
rm -rf build/*
{
python_bin
}
setup.py bdist_wheel -d /tmp/tmp_wheel --build_dir
{
oneflow_build_dir
}
--package_name
{
package_name
}
"""
if
skip_audit
:
bash_cmd
+=
f
"""
cp /tmp/tmp_wheel/*.whl
{
house_dir
}
"""
else
:
bash_cmd
+=
f
"""
auditwheel repair /tmp/tmp_wheel/*.whl --wheel-dir
{
house_dir
}
"""
return
create_tmp_bash_and_run
(
...
...
@@ -329,6 +337,9 @@ if __name__ == "__main__":
parser
.
add_argument
(
"
--skip_img
"
,
default
=
False
,
action
=
"
store_true
"
,
required
=
False
)
parser
.
add_argument
(
"
--skip_audit
"
,
default
=
False
,
action
=
"
store_true
"
,
required
=
False
)
parser
.
add_argument
(
"
--use_tuna
"
,
default
=
False
,
action
=
"
store_true
"
,
required
=
False
)
...
...
@@ -484,6 +495,7 @@ gcc --version
args
.
dry
,
args
.
use_system_proxy
,
args
.
bash
,
args
.
skip_audit
,
)
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment